πŸ“Š C Programming
Q. What is printed when the sample code is executed?
Code:
int y[4] = {6, 7, 8, 9};
int *ptr = y + 2; printf(“%dn”, ptr[ 1 ] );
  • (A) 6
  • (B) 7
  • (C) 8
  • (D) 9
πŸ’¬ Discuss
βœ… Correct Answer: (D) 9

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
186
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
89%
Success Rate