Examveda
Examveda

What will be the final value of j in the following C code?
#include <stdio.h>
int main()
{
    int i = 0, j = 0;
    if (i && (j = i + 10))
        //do something
        ;
}

A. 0

B. 10

C. Depends on the compiler

D. Depends on language standard

Answer: Option A


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals