Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the difference between array and pointer?

1014


What is function and its example?

1209


Is return a keyword in c?

1075


What is typedef example?

1179


What do you mean by a sequential access file?

1078


What is the equivalent code of the following statement in WHILE LOOP format?

1302


Write a program with dynamically allocation of variable.

1124


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2864


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1720


What is the difference between array and linked list in c?

1150


Is c call by value?

1014


I came across some code that puts a (void) cast before each call to printf. Why?

1218


Is there any data type in c with variable size?

1098


What is the use of void pointer and null pointer in c language?

1120


How to explain the final year project as a fresher please answer with sample project

975