C Programming | Recursion | CS GATE PYQs | GATE 2017 Set-1 Solutions | Solutions Adda |Q21| GATE2022

C Programming | Recursion | CS GATE PYQs | GATE 2017 Set-1 Solutions | Solutions Adda |Q21| GATE2022

338 Просмотров

GATE CS 2017 SET-1 Q: Consider the following two functions.
void fun1(int n) { void fun2(int n) {
if(n == 0) return; if(n == 0) return;
printf("%d", n); printf("%d", n);
fun2(n - 2); fun1(++n);
printf("%d", n); printf("%d", n);
} }
The output printed when fun1(5) is called is

GATE Previous Year Questions with detailed explanation question by question
Website: https://solutionsadda.in/
ISRO / DRDO PYQs: https://solutionsadda.in/isro/
GATE PYQs : https://solutionsadda.in/gate1/
NIC - NIELIT PYQs: https://solutionsadda.in/nielit/

ISRO Complete Analysis: https://solutionsadda.in/isro-complete-analysis/
NIC-NIELIT Complete Analysis: https://solutionsadda.in/nielit/
GATE Complete Analysis: https://solutionsadda.in/gate-complete-analysis/

For GATE, BARC, ISRO, CIL, AAI, HAL, UGC NET JRF, NIC NIELIT, STQC NIELIT, NVS, KVS, DSSSB PGT/TGT
Test series : https://solutionsadda.in/test-series/ && http://new.solutionsadda.in/index.php/home/testseriesall

If you have any queries write a mail: [email protected]
Face Book Page: https://www.facebook.com/Solutionsaddain-111628724482494
Telegram: https://t.me/solutionsaddaforcse

Тэги:

#gate_cse #cse_gate_2022 #gate_cse_2022 #cs_gate_test_series #rbr_test_series #gate_cs_test_series #Gateoverflow_Gate_cs #ravindrababu_ravula #GATE_LECTURES #PREVIOUS_YEAR_GATE_QUESTIONS #GATE_PREPARATION #Gate_academy #made_easy #geeksforgeeks #computer_science #gate_2020 #gate_toppers #gate_tips #gate #applied_ai_course #applied_course #ace_academy #gate_at_zeal #gate_2021 #quora #gate_overflow #gate_aspirants #gate_pyq #MTech_GATE
Ссылки и html тэги не поддерживаются


Комментарии: