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 are the restrictions of a modulus operator?
What is openmp in c?
What is a void pointer in c?
What is the difference between typedef struct and struct?
With the help of using classes, write a program to add two numbers.
What is #pragma statements?
How old is c programming language?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
State the difference between realloc and free.
What does c value mean?
Explain how can you tell whether two strings are the same?
Define macros.
What is the advantage of using #define to declare a constant?
Implement bit Array in C.
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.