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 / divakar

ouput will be c)a=101 (*p)=101

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many identifiers are there in c?

1080


What is c definition?

1336


What is LINKED LIST? How can you access the last element in a linked list?

1110


What are the preprocessor categories?

1112


What the advantages of using Unions?

1291


What are global variables?

1263


What are the types of data structures in c?

1210


What is maximum size of array in c?

1084


What is array within structure?

1169


What is restrict keyword in c?

1165


What is the difference between arrays and pointers?

1173


Are comments included during the compilation stage and placed in the EXE file as well?

1126


What is the purpose of realloc()?

1195


What is variable in c example?

1129


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1190