Join Examsbook
820 0

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 AnswerHide Answer
  • Workspace

Answer : 2. "10"
Explanation :

Answer: B) 10 Explanation:

Are you sure

  Report Error

Please Enter Message
Error Reported Successfully