What would be the output of the following program ?
main()
{
const int x = 5;
int *ptrx;
ptrx = &x;
*ptr = 10;
printf ("%d", x);
}5
818 5b5cc7dce4d2b419777515be
Q: What would be the output of the following program ? main() { const int x = 5; int *ptrx; ptrx = &x; *ptr = 10; printf ("%d", x); }
- 15false
- 210true
- 3Errorfalse
- 4Garbage valuefalse
- Show Answer
- Workspace
- Discuss