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);
}
A
2036, 2036, 2036
B
2012, 4, 2204
C
2036, 10, 10
D
2012, 4, 6

Correct : c

Similar Questions

Suppose you are provided with the following function declaration in the C programming language. int partition(int a, int n); The function treats the first ele...
#1172 MCQ
Suppose you are provided with the following function declaration in the C programming language. int partition(int a, int n); The function treats the first ele...
#1172 MCQ
Suppose you are provided with the following function declaration in the C programming language. int partition(int a, int n); The function treats the first ele...
#1172 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......