What will be the output of the following C code?
#include <stdio.h>
void main()
{
int k = 0;
double b = k++ + ++k + k--;
printf("%d", k);
}
#include <stdio.h>
void main()
{
int k = 0;
double b = k++ + ++k + k--;
printf("%d", k);
}A. 6
B. 1
C. 5
D. undefined
Answer: Option B

Join The Discussion