Q49 Consider the following two functions gate computer science 2017
The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we solve previous year question papers for you.
See Our team
Wondering how we keep quality?
Got unsolved questions?

Ask Questions
Hey! Want to work with us? Our youtube channel See our Jd Want to apply? Do it today

Use Me  ?

New searches
GATE-Computer-Science-Engineering-2017-->View question


Q.49) Consider the following two functions : -gate computer science 2017

void fun1(int n){ 

     if(n == 0) return; 
     printf(“%d”, n); 
     fun2(n-2);
     printf(“%d”, n);  
}

void fun2(int n){ 

     if(n == 0) return; 
     printf(“%d”, n); 
     fun1(++n);
     printf(“%d”, n);  
}

The output printed when fun1 (5) is called is : 
A) 53423122233445
B) 53423120112233
C) 53423122132435
D) 53423120213243


By:satyashiromani

Taged users:
|satyashiromani|vaishnavi-Deshpande|vivek25|milanyoyoyogmailcom|Umang|Raaghav-singhal|ThreeRed|Msshikhil|deepuckraj|Aparna-Dasgupta|Manisha12|Johnny|thegdx|leo||Naman-Nath|aksingh1818|Jessika-K|13priya|milan-ransingh|Amogh|Divyanshu-Changkakoti|Ashwath-Shetty|Aaditi|madachod|tichaona-garaidenga|ronald|akialwayz|jinsnjjose|dillu550

Likes:
|Oshal-Borkar

Dislikes:
Be first to dislike this question

Talk about thisDelete|Like|Dislike|


Answers

A) 53423122233445
                                                                                                                                                                                                                                                         

satyashiromani

Likes:
|satyashiromani

Dislikes:
Be first to dislike this answer
Talk about this|Once you have earned teacher badge you can edit this questionDelete|Like|Dislike|
------------------------------------

Can you help us to add better answer here? Please see this

Loading...


Not the answer you're looking for? Browse other questions from this Question paper or ask your own question.

Join eduladder!