GATEverse Practice, past papers & mock tests
GATE 2015 · Set-1
Programming & Data StructuresArraysmediumMCQ1 mark
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.
c
#include <stdio.h>
int main() {
    unsigned int x[4][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}};
    printf("%u, %u, %u", x + 3, *(x + 3), *(x + 2) + 3);
}
Save your progress

Related Programming & Data Structures PYQs