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 / ankit panwar

*ptr++ : it just increments the pointer not the value it is
pointing to..

++*ptr : it increments the value the pointer points to but
not the pointer..

here

(*ptr++) + (++*ptr) = 0 + (4+1) = 5

so the answer will definately be 5

Is This Answer Correct ?    2 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is uint8 in c?

1106


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1308


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

5463


What is New modifiers?

1131


Why structure is used in c?

1194


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1863


What does 1f stand for?

1168


Why c is called a middle level language?

1114


Write a program to check palindrome number in c programming?

1022


what is the diffrenet bettwen HTTP and internet protocol

1840


What is the use of printf() and scanf() functions?

1136


regarding pointers concept

2046


Difference between goto, long jmp() and setjmp()?

1182


How many main () function we can have in a project?

1115


What is pointer & why it is used?

1122