Computer Sciences > GATE 2021 SET-1 > C Programming
Consider the following ANSI C program.
Which one of the following options is correct?
A
The program will not compile successfully.
B
The program will compile successfully and output 10 when executed.
C
The program will compile successfully and output 8 when executed.
D
The program will compile successfully and output 13 when executed.

Correct : b

Similar Questions

Consider the following two functions void fun1(int n){     if(n == 0) return;       printf(β€œ%d”, n);     fun2(n-2); &...
#175 MCQ
Consider the C functions foo and bar given below: int foo(int val) {     int x = 0;     while (val > 0)     {     &nbs...
#190 MCQ
What is printed by the following ANSI C program? #include<stdio.h> int main(int argc, char *argv[]) {     int a[3][3][3] =     {{...
#311 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......