Consider the following C code:
int main() {
sum = 0;
for (n = 1; n < 3; n++) {
n++;
sum += g(f(n));
}
printf("%d", sum);
}
int g(n) {
return 10 + n;
}
int f(n) {
return g(2 * n);
}
What is the output?
Consider the following code:
main() {
int x = 126, y = 105;
{
if (x > y)
x = x - y;
else
y = y - x;
}
while (x != y)
printf("%d", x);
}
Consider the following code:
int a;
int arr[] = {30, 50, 10};
int *ptr = arr[10] + 1;
a = *ptr;
(*ptr)++;
ptr = ptr + 1;
printf("%d", a + arr[1] + *ptr);