Programming Languages
C
Objective
Mar 08, 2013
What will be output of the following c code?
void main()
{
register int i,x;
scanf("%d",&i);
x=++i + ++i + ++i;
printf("%d",x);
}
Detailed Explanation
In c register variable stores in CPU it doesn’t store in RAM. So register variable have not any memory address. So it is illegal to write &a.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts