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

Explain high-order and low-order bytes.

1103


How do I round numbers?

1012


When is a “switch” statement preferable over an “if” statement?

1151


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3690


Write a code of a general series where the next element is the sum of last k terms.

1043


What is the Purpose of 'extern' keyword in a function declaration?

1084


What does the message "automatic aggregate intialization is an ansi feature" mean?

1190


Is c language still used?

985


What are keywords c?

1032


how we can make 3d venturing graphics on outer interface

4833


What are the features of the c language?

1088


Explain the difference between structs and unions in c?

1028


What is a nested formula?

1162


What is the maximum length of an identifier?

1187


What is the use of c language in real life?

1027