Users Also Read
MCQ's Search Engine
Electrical Engineering
Mechanical Engineering
Civil Engineering
Automobile Engineering
Chemical Engineering
Computer Engineering
Electronics Engineering
Medical Science Engg
Comment on the output of this C code? #include int main() { int a[5] = {1, 2, 3, 4, 5}; int i; for (i = 0; i < 5; i++) if ((char)a[i] == '5') | |
A. | The compiler will flag an error [Wrong Answer] |
B. | Program will compile and print the output 5 [Wrong Answer] |
C. | Program will compile and print the ASCII value of 5 [Wrong Answer] |
D. | Program will compile and print FAIL for 5 times [Correct Answer] |