Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. 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()
    {
    unsigened 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);
    }
    1. 2036, 2036, 2036
    2. 2012, 4, 2204
    3. 2036, 10, 10
    4. 2012, 4, 6
Correct Option: C

NA



Your comments will be displayed only after manual approval.