search
Log In
2 votes
1.4k views
What will be the final output :


#include <stdio.h>

int r(){
    
    static int   num=7;
    return num--;
}
int main(){
    for(r();r();r()) {
         printf("%d ",r());
    }
    return 0;
    
}

A)63
B)41
C)52
D)630

 

closed as a duplicate of: GATE2019-27
in Programming
retagged by
1.4k views

Related questions

0 votes
2 answers
1
0 votes
2 answers
2
205 views
What is the Output of following code? void main() { int i=10; int *j; void *k; k=&i; j=&i; k++; j++; printf("Address of j=%u",j); }
asked Jun 6, 2017 in Programming Nitesh Choudhary 205 views
0 votes
1 answer
3
199 views
Find the out put of the following C program. main() { char *ptr = "techtud"; char p= (*ptr)++; printf("%s\n",ptr); } the output of the program came as$?$
asked Mar 27, 2017 in Programming sushmita 199 views
0 votes
1 answer
4
545 views
#include<stdio.h> #include<stdlib.h> int main(void) { int maxLineCount = 500, maxCharCount = 500, index, j, count; char *line = NULL; size_t size; char *a[maxLineCount]; for (index = 0; index < maxLineCount; index++) a[index] = (char *)malloc(maxCharCount * ... of the code is doing. suppose we have 3 string given as input in 3 different lines then how can we access each character of the string?
asked Jun 1, 2019 in Programming Satbir 545 views
...