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 is oops c?

616


What is clrscr ()?

641


Can we access array using pointer in c language?

650


What is a pointer in c?

685


What is pragma in c?

632






What is merge sort in c?

649


Why is c so powerful?

691


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

651


What is static volatile in c?

579


What are examples of structures?

600


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

627


What is variables in c?

611


What does the characters “r” and “w” mean when writing programs that will make use of files?

862


What happens if a header file is included twice?

602


Why do we need arrays in c?

589