Consider the following C program: #include <stdio.h> int g(int n) { return (n…
PYQ GATE 2025
Consider the following C program:
#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;
for (n = 1; n < 3; n++)
sum += g(f(n));
printf("%d", sum);
return 0;
}
The output of the given C program is ________. (Answer in integer)
Attempted by 218 students.
Sign up free to check your answer
Sign up freeLoading lesson…

