Take FREE!! Online Cocubes Mock Test to Crack various Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.

C Programming :: Const / Volatile Qualifier - Discussion

Home > C Programming > Const / Volatile Qualifier > MCQs Questions Discussion

3 / 10

What is the output of the following 'C' program?

#include
void main ()
{
const int x = 5;
int *ptrx;
ptrx = &x;
*ptrx = 10;
printf ("%d", x);
}

A5

B10

CError.

DGarbage value

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!