πŸ“Š C Programming
Q. What is the output of this code?
Code:
int a = 10;
int *p = &a;
printf("%d", *p);
  • (A) a
  • (B) 10
  • (C) Address of a
  • (D) Undefined
πŸ’¬ Discuss
βœ… Correct Answer: (B) 10

Explanation: *p gives the value stored at address p, which is 10.

Explanation by: Mr. Dubey
*p gives the value stored at address p, which is 10.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
53
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate