πŸ“Š C Programming
Q. Let x is an integer array with three elements having value 10, 20, and 30. What will be the output of the following statement?
Code:
printf("%u",x);
  • (A) Prints the value of 0th element (i.e., 10)
  • (B) Prints the garbage value
  • (C) An error occurs
  • (D) Print the address of the array (i.e., the address of first (0th) element
πŸ’¬ Discuss
βœ… Correct Answer: (D) Print the address of the array (i.e., the address of first (0th) element

Explanation: If we print the array (in this case, x). The output will be the memory address of the array (i.e., the address of first (0th) element.

Explanation by: Team MCQ Buddy
If we print the array (in this case, x). The output will be the memory address of the array (i.e., the address of first (0th) element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
476
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Team MCQ Buddy
Publisher
πŸ“ˆ
94%
Success Rate