C-Programming-data-structure || 2017 set 1 || MCQ || 2-mark || Module 1: C Programming3

Last Updated :
Discuss
Comments

Consider the following two functions.

C
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 2017 SET 1 || MCQ || 2-mark


53423122233445

 53423120112233

53423122132435

53423120213243

Share your thoughts in the comments
Article Tags :