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
Are global variables static in c?
What is a method in c?
What are the c keywords?
What is a c token and types of c tokens?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
c language interview questions & answer
What is difference between structure and union?
What is the difference between volatile and const volatile?
What is the use of putchar function?
How is a pointer variable declared?
What is a nested loop?
What does %c do in c?
Explain #pragma statements.
Which programming language is best for getting job 2020?
Can a pointer be volatile in c?