main()
{
int *ptr=(int*)malloc(sizeof(int));
*ptr=4;
printf("%d",(*ptr)+++*ptr++);
}
Answer Posted / s k dubey
hello ,if problem is..
int *p=(int*)malloc(sizeof(int));
*p=4;
printf("%d",(*p)+++(*p)++);
o/p is 9;
it is just similar the case of post incremental operation of
variable like i+++i++.
| Is This Answer Correct ? | 158 Yes | 14 No |
Post New Answer View All Answers
What is nested structure?
What is c definition?
What is #include conio h?
How do I read the arrow keys? What about function keys?
Explain pointer. What are function pointers in C?
Why is structure padding done in c?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What are the c keywords?
Why do we use int main instead of void main in c?
What does 3 periods mean in texting?
write a c program in such a way that if we enter the today date the output should be next day's date.
What do you mean by keywords in c?
Explain how can I open a file so that other programs can update it at the same time?
Can you add pointers together? Why would you?
How to create struct variables?