What is the output of this C code? int main() { int x = 1; int y = x == 1 ? getchar(): 2; printf("%d ", y); }
1.Compile time error
2.Whatever character getchar function returns
3.Ascii value of character getchar function returns
4.2
Posted Date:-2022-03-21 14:34:21