Programming Languages C Objective
Mar 07, 2013

What will be output if you will compile and execute the

following c code?

#include<stdio.h>

int main(){

const int x=25;

int * const p=&x;

*p=2*x;

printf("%d",x);

return 0;

}

Choose the correct answer:
A) 50
B) 25
D) Compiler error
Detailed Explanation

No Explanation

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback