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

Explanation: Pointer dereferencing allows modifying the original variable.

Explanation by: Mr. Dubey
Pointer dereferencing allows modifying the original variable.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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