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
How can I do serial ("comm") port I/O?
write a c program for swapping two strings using pointer
How many loops are there in c?
Why we use stdio h in c?
What are qualifiers in c?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
program for reversing a selected line word by word when multiple lines are given without using strrev
Subtract Two Number Without Using Subtraction Operator
Why is it important to memset a variable, immediately after allocating memory to it ?
Describe explain how arrays can be passed to a user defined function
Is null a keyword in c?
Can you please explain the scope of static variables?
Explain high-order bytes.
i got 75% in all semester am i eligible for your company
What is a 'null pointer assignment' error?