Top

Discussion

What will be the output of the program if the array begins 1200 in memory?

#include

int main()
{
    int arr[]={2, 3, 4, 1, 6};
    printf("%u, %u, %u\n", arr, &arr[0], &arr);
    return 0;
}

 

  • A.1200, 1202, 1204
  • B.1200, 1200, 1200
  • C.1200, 1204, 1208
  • D.1200, 1202, 1200

Answer: B

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment