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
Why we use int main and void main?
Difference between macros and inline functions? Can a function be forced as inline?
What is the difference between array and structure in c?
Why do we write return 0 in c?
Why is struct padding needed?
What is c basic?
Why does notstrcat(string, "!");Work?
What is a program flowchart and how does it help in writing a program?
What is the basic structure of c?
What is New modifiers?
What is this infamous null pointer, anyway?
How can I split up a string into whitespace-separated fields?
What is nested structure in c?
Can stdout be forced to print somewhere other than the screen?
What is the difference between null pointer and wild pointer?