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

What is spark map function?

1140


How can variables be characterized?

2191


What is the explanation for cyclic nature of data types in c?

1221


Explain why c is faster than c++?

1073


What is hungarian notation? Is it worthwhile?

1225


What are the types of pointers in c?

1029


Can a file other than a .h file be included with #include?

1165


What is difference between structure and union in c?

991


How is = symbol different from == symbol in c programming?

1050


What is the purpose of ftell?

1085


How many types of sorting are there in c?

1061


How do you list a file’s date and time?

1070


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

1298


How can you tell whether a program was compiled using c versus c++?

1110


Why is it usually a bad idea to use gets()? Suggest a workaround.

1788