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...

main()
{
int *ptr=(int*)malloc(sizeof(int));
*ptr=4;
printf("%d",(*ptr)+++*ptr++);
}

Answer Posted / s k dubey

hello ,if problem is..
int *p=(int*)malloc(sizeof(int));
*p=4;
printf("%d",(*p)+++(*p)++);

o/p is 9;

it is just similar the case of post incremental operation of
variable like i+++i++.

Is This Answer Correct ?    158 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are global variables static in c?

1117


What is a method in c?

1077


What are the c keywords?

1159


What is a c token and types of c tokens?

1017


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1021


c language interview questions & answer

1914


What is difference between structure and union?

1086


What is the difference between volatile and const volatile?

941


What is the use of putchar function?

1026


How is a pointer variable declared?

1036


What is a nested loop?

1084


What does %c do in c?

945


Explain #pragma statements.

988


Which programming language is best for getting job 2020?

998


Can a pointer be volatile in c?

944