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 / venkataramani kumar.t.b.

The Answer is C) a=101 and (*p)=101.

Since the variable is not directly accessed and it
increments thru' the pointer, so the answer is valid

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain do array subscripts always start with zero?

1239


Which one would you prefer - a macro or a function?

1087


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1096


What does sizeof int return?

1084


Which built-in library function can be used to match a patter from the string?

1303


How do you write a program which produces its own source code as output?

1121


Why c is a mother language?

1041


Is that possible to add pointers to each other?

1376


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1273


What is modifier & how many types of modifiers available in c?

1032


What is this pointer in c plus plus?

1093


What are the application of c?

1102


What is .obj file in c?

1087


What is ambagious result in C? explain with an example.

2638


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1036