Examveda

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);
}

A. 6

B. 1

C. 5

D. undefined

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals