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 / sridevi.halli

answer is d)none of the above
bcoz in line p=&a it will gve error

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain union. What are its advantages?

1083


Can main () be called recursively?

1130


How do you define CONSTANT in C?

1288


Explain what is a pragma?

1059


Place the #include statement must be written in the program?

1049


Explain data types & how many data types supported by c?

1090


Write a Program to accept different goods with the number, price and date of purchase and display them

6244


What does != Mean in c?

1061


Explain how does free() know explain how much memory to release?

1087


How do you construct an increment statement or decrement statement in C?

1243


What is queue in c?

1111


How a string is stored in c?

1078


How many keywords (reserve words) are in c?

1146


Can a variable be both const and volatile?

1139


What is include directive in c?

1170