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


Please Help Members By Posting Answers For Below Questions

What are the restrictions of a modulus operator?

638


What is openmp in c?

612


What is a void pointer in c?

608


What is the difference between typedef struct and struct?

600


With the help of using classes, write a program to add two numbers.

619






What is #pragma statements?

589


How old is c programming language?

579


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.....

1372


State the difference between realloc and free.

635


What does c value mean?

628


Explain how can you tell whether two strings are the same?

582


Define macros.

785


What is the advantage of using #define to declare a constant?

621


Implement bit Array in C.

676


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.

14962