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


Please Help Members By Posting Answers For Below Questions

What are pointers?

634


How do we make a global variable accessible across files? Explain the extern keyword?

1422


Explain about the constants which help in debugging?

853


What are disadvantages of C language.

649


What is a pointer variable in c language?

645






What are the complete rules for header file searching?

674


Why is this loop always executing once?

617


What is an arrays?

652


Why c is called a middle level language?

634


What are the types of pointers in c?

530


Why do we use & in c?

591


Explain what’s a signal? Explain what do I use signals for?

611


What is a double c?

591


How can I make it pause before closing the program output window?

581


Explain what is operator promotion?

637