The Gateway to Computer Science Excellence
+2 votes
960 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 by (385 points)
retagged by | 960 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,741 questions
57,251 answers
198,057 comments
104,685 users