Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

C Programming :: Const / Volatile Qualifier - Discussion

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

11 / 10

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

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

A5

BCompilation Error

C10

DGarbage value

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Capgemini

Post Your Answer Here:     

No Discussion on this question yet!