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


Please Help Members By Posting Answers For Below Questions

What is pointer and structure in c?

574


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

780


Why we use break in c?

550


Explain what is the difference between text files and binary files?

617


Explain output of printf("Hello World"-'A'+'B'); ?

974






Place the #include statement must be written in the program?

571


What are the advantages of c language?

666


What is binary tree in c?

622


explain what is fifo?

632


What are keywords c?

603


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1517


What is difference between constant pointer and constant variable?

630


What is meant by type casting?

629


What is the use of ?: Operator?

666


What is array in C

710