Get Started
799

Q: What would be the output of the following program ? main() {      const int x = 5;        int *ptrx;       ptrx = &x;       *ptr = 10;        printf ("%d", x); }

  • 1
    5
  • 2
    10
  • 3
    Error
  • 4
    Garbage value
  • Show Answer
  • Workspace

Answer : 2. "10"
Explanation :

Answer: B) 10 Explanation:

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today