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 ?    27 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why double pointer is used in c?

563


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1423


All technical questions

1505


What is ponter?

768


Why is c so popular?

644






What is sizeof array in c?

588


Can the curly brackets { } be used to enclose a single line of code?

709


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2716


Write a Program to find whether the given number or string is palindrome.

607


What are the similarities between c and c++?

593


Can you tell me how to check whether a linked list is circular?

759


Explain what is the heap?

618


How do you print only part of a string?

606


code for replace tabs with equivalent number of blanks

1631


What is extern storage class in c?

509