c
GATE CS 2025 (Forenoon) — Question 61
Programming in CFunctions, Parameter Passing, Scope Rules, RecursionNAT2 marksMedium
The value printed by the given C program is ________. (Answer in integer)
A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.
More on Functions, Parameter Passing, Scope Rules, Recursion
- GATE CS 2026 (Forenoon) · Q34Consider the following program in C: c include <stdio.h> void func(int i, int j) if(i < j) int i = 0; while (i < 10) j += 2; i++; printf("%…
- GATE CS 2026 (Forenoon) · Q61Consider the recursive functions represented by the following code segment: c int bar(int n) if (n == 1) return 0; else return 1 + bar(n/2)…
- GATE CS 2026 (Afternoon) · Q19Consider the following three ANSI-C programs, P1, P2 and P3 Which one of the following statements is true?
- GATE CS 2026 (Afternoon) · Q61Consider the following ANSI-C function. c int func(int start, int end) int length = end + 1 - start; if((length<1) (start < 0) (end<0)) ret…
- GATE CS 2025 (Afternoon) · Q63Consider the following C program: c include <stdio.h> int g(int n) return (n+10); int f(int n) return g(n 2); int main( ) int sum, n; sum=0…
- GATE CS 2024 (Forenoon) · Q19Consider the following program: c include <stdio.h> void fx( ); int main( ) fx( ); return 0; void fx( ) char a; if ((a=getchar( )) != ' ')…

