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

the output is

a=100n(*p)=101n

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1214


Why string is used in c?

999


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1109


Why void main is used in c?

1044


What is mean by data types in c?

1024


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

2167


Explain what is a const pointer?

1078


Is null a keyword in c?

1192


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1065


What is return type in c?

1131


What do you mean by invalid pointer arithmetic?

1068


What are c header files?

988


What is the ANSI C Standard?

1265


What is the data segment that is followed by c?

1081


If null and 0 are equivalent as null pointer constants, which should I use?

1207