Computer Sciences > GATE 2015 SET-1 > C
What is the output of the following C code? Assume that the address of x is 2000 (in decimal) and an integer requires four bytes of memory.
int main() {
unsigned int x = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}};
printf("%u, %u, %u", x + 3, *(x + 3), *(x + 2) + 3);
}
int main() {
unsigned int x = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}};
printf("%u, %u, %u", x + 3, *(x + 3), *(x + 2) + 3);
}
Correct : c
Similar Questions
Consider the following ANSI C program: int main() { Integer x; return 0; } Which one of the following phases in a seven-phase C compiler will throw an erro...
Consider the following ANSI C program.
What is the output of the above program?
Consider the following ANSI C function:
The value returned by SomeFunction(15, 255) is _______.
Total Unique Visitors
Loading......