study the code:
#include<stdio.h>
void main()
{
const int a=100;
int *p;
p=&a;
(*p)++;
printf("a=%dn(*p)=%dn",a,*p);
}
What is printed?
A)100,101 B)100,100 C)101,101 D)None of the
above
Answer Posted / guest
D)
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is register variable in c language?
Differentiate between the = symbol and == symbol?
How reliable are floating-point comparisons?
Why doesnt this code work?
Explain what are run-time errors?
Once I have used freopen, how can I get the original stdout (or stdin) back?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Are bit fields portable?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
Is it fine to write void main () or main () in c?
What does c mean?
Which is better between malloc and calloc?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What are the differences between Structures and Arrays?
What is malloc() function?