GATE CS 2023 | Question: 26 Consider the following program :int main(){ f1();f2(2); f3(); return

Опубликовано: 14 Август 2026
на канале: Monalisa CS
1,754
43

GATE CS 2023 | Question: 26
Consider the following program :
int main(){ f1(); f2(2); f3(); return(0);}
int f1( ){ return(1);}
int f2 (int X){ f3 ( ) ; if (X == 1) return f1 ( ) ; else return (X*f2(X-1));
}
int f3 ( ){ return (5) ;}
Which one of the following options represents the activation tree corresponding to the main function?
(A) (B) (C) (D)
Ans :(A)
0:00 Question
0:25 Solution
----------------------------------------------------
Subscribe my channel for more updates    / monalisacs  
----------------------------------------------------------
Join Telegram GATE CSE study group: https://t.me/MonalisaCSE
----------------------------------------------
GATE General Aptitude (GA) solved by Monalisa    • General Aptitude PYQ solved by Monalisa Pr...  
----------------------------------------------------------------
Algorithm Lectures :   • Algorithm Lectures for GATE CSE by Monalis...  
Algorithm GATE PYQ:    • Algorithm GATE CS & DA PYQ(2010-2025) solv...  
----------------------------------------------------------------
Compiler Design Lectures :   • Ch 1.1:Language Processing System |CD Lect...  
Compiler Design PYQ :   • Ch 1.1:Language Processing System |CD Lect...  
----------------------------------------------------------------------
Theory Of Computation Lectures    • Video  
TOC GATE PYQ:    • GATE CS 2010,Q39:Let L={w ∈ (0 + 1)* | w h...  
-------------------------------------------------------------------
Data Structure Lecture:    • Data Structure Syllabus for GATE  
Data Structure PYQ:    • Data Structure Syllabus for GATE  
-----------------------------------------------------------------------
#gate_cs #gate #compilerdesign #compiler #gate2023 #activationtree