Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 10;
    if (a == a--)
        printf("TRUE 1\t");
    a = 10;
    if (a == --a)
        printf("TRUE 2\t");
}

A. TRUE 1

B. TRUE 2

C. TRUE 1     TRUE 2

D. Compiler Dependent

Answer: Option D


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals