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 / manil shrama

hello all..........
here malloc function reserves a memory space for an integer,whose adddess is pointed by integer pointer p.
Now at this memory space,4 istored by using *p = 4

(*p)+++means,*p=*p+2, (4+2=6)
and ptr++ means,*ptr=*ptr+1, (4+1=5)


now 4*5=30 is required answer
k bye.....tc

Is This Answer Correct ?    6 Yes 49 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c fast?

1052


What is calloc malloc realloc in c?

1048


How can you convert integers to binary or hexadecimal?

1022


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1894


State the difference between x3 and x[3].

1109


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

996


What is class and object in c?

1113


What does. int *x[](); means ?

1058


Explain what is wrong with this statement? Myname = ?robin?;

1562


What is the difference between abs() and fabs() functions?

1115


Is c high or low level?

1003


What is the difference between Printf(..) and sprint(...) ?

1521


What is actual argument?

1058


Explain union. What are its advantages?

1073


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1061




="https://www.googletagmanager.com/gtag/js?id=G-2NC8ZH7G4C">