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

d)None of the above
It will give compliation error at the line p=&a,pointer to
integer cannot assign to const int

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a program be made to print the name of a source file where an error occurs?

1214


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1231


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2168


while initialization of array why we use a[][2] why not a[2][]...?

2351


Is c is a middle level language?

1061


Why do we need volatile in c?

1164


What are terms in math?

1044


What is meant by high-order and low-order bytes?

1047


What is the use of pointers in C?

1065


Differentiate between a structure and a union.

1285


Why we not create function inside function.

2190


Explain what is wrong with this program statement?

1116


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

1116


What is an identifier?

1029


How many data structures are there in c?

1110