What will be the output of the program?#include int main() { const int x=5; const int *ptrx; ptrx = &x; *ptrx = 10; printf('%d\n', x); return 0; } - Study24x7
Social learning Network
03 Mar 2023 12:32 PM study24x7 study24x7

What will be the output of the program?

#include<stdio.h> int main() { const int x=5; const int *ptrx; ptrx = &x; *ptrx = 10; printf("%d\n", x); return 0; }

A

5

B

10

C

Error

D

Garbage value

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles