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 oops c?
What is clrscr ()?
Can we access array using pointer in c language?
What is a pointer in c?
What is pragma in c?
What is merge sort in c?
Why is c so powerful?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is static volatile in c?
What are examples of structures?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is variables in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What happens if a header file is included twice?
Why do we need arrays in c?