Consider the following C program:
Which one of the following values will be displayed on execution of the programs?
c
- A41
- B52
- C63
- D630
Programming in CFunctions, Parameter Passing, Scope Rules, RecursionMCQ2 marks · −2/3 if wrongMedium
1#include<stdio.h>
2int r( )
3{
4 static int num = 7;
5 return num--;
6}
7int main( )
8{
9 for ( r( ); r( ); r( ) )
10 printf("%d", r( ) );
11 return 0;
12}
13A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.