Consider the following C program:
The value printed by the program is ________.
c
Programming in CFunctions, Parameter Passing, Scope Rules, RecursionNAT1 markMedium
1#include <stdio.h>
2int jumble(int x, int y) {
3 x = 2 * x + y;
4 return x;
5}
6int main ( ) {
7 int x = 2, y = 5;
8 y = jumble(y, x);
9 x = jumble(y, x);
10 printf("%d\n", x);
11 return 0;
12}
13A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.