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
Why double pointer is used in c?
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
All technical questions
What is ponter?
Why is c so popular?
What is sizeof array in c?
Can the curly brackets { } be used to enclose a single line of code?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Write a Program to find whether the given number or string is palindrome.
What are the similarities between c and c++?
Can you tell me how to check whether a linked list is circular?
Explain what is the heap?
How do you print only part of a string?
code for replace tabs with equivalent number of blanks
What is extern storage class in c?