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 / madhu
D) NONE OF THE ABOVE
COZ
ANS IS A=101n (*p)=101n
to get this *p should be an constant pointer
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the difference between array and pointer?
What is function and its example?
Is return a keyword in c?
What is typedef example?
What do you mean by a sequential access file?
What is the equivalent code of the following statement in WHILE LOOP format?
Write a program with dynamically allocation of variable.
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What is the difference between array and linked list in c?
Is c call by value?
I came across some code that puts a (void) cast before each call to printf. Why?
Is there any data type in c with variable size?
What is the use of void pointer and null pointer in c language?
How to explain the final year project as a fresher please answer with sample project