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 pointer and structure in c?
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?
Why we use break in c?
Explain what is the difference between text files and binary files?
Explain output of printf("Hello World"-'A'+'B'); ?
Place the #include statement must be written in the program?
What are the advantages of c language?
What is binary tree in c?
explain what is fifo?
What are keywords c?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
What is difference between constant pointer and constant variable?
What is meant by type casting?
What is the use of ?: Operator?
What is array in C