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 / sridevi.halli
answer is d)none of the above
bcoz in line p=&a it will gve error
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are pointers?
How do we make a global variable accessible across files? Explain the extern keyword?
Explain about the constants which help in debugging?
What are disadvantages of C language.
What is a pointer variable in c language?
What are the complete rules for header file searching?
Why is this loop always executing once?
What is an arrays?
Why c is called a middle level language?
What are the types of pointers in c?
Why do we use & in c?
Explain what’s a signal? Explain what do I use signals for?
What is a double c?
How can I make it pause before closing the program output window?
Explain what is operator promotion?