Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 1, y = 0, z = 3;
    x > y ? printf("%d", z) : return z;
}

A. 3

B. 1

C. Compile time error

D. Run time error

Answer: Option C


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals