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

hi all,
i think *ptr=(int*)malloc(size of (int));
*ptr=4;
mean malloc(size of (int)) is used to allocate memory of only 4.
hence(*ptr)+++*ptr++)=4+4=8

Is This Answer Correct ?    28 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to generate the Fibinocci Series

1229


Explain the difference between structs and unions in c?

1014


What is meant by initialization and how we initialize a variable?

1044


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

1077


Why structure is used in c?

1185


Differentiate between functions getch() and getche().

1047


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4677


Where can I get an ansi-compatible lint?

1140


What is the method to save data in stack data structure type?

1079


What is the use of a ‘’ character?

1083


What is enumerated data type in c?

1071


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2292


What is queue in c?

1096


Where static variables are stored in c?

1105


What are identifiers and keywords in c?

1092