Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@thebigk • Aug 6, 2013
I added a better title to the question. I think you're asking about the output of this program, right? Why not just run it and check for yourself? -
@rahul69-97fAOs • Aug 10, 2013
It will print 8,bhulaxmimain()
{
int *ptr=(int*)malloc(sizeof(int));
*ptr=4;
printf("%d",(*ptr)+++*ptr++);
After the printf statement is executed, the pointer ptr had move to next address, and the value at earlier address is incremented (ie, becomes 5), if u still got any doubts, plz do share 😀 -
@nayan-Dhpt4N • Aug 10, 2013
I think this program will generate output 10. Still working on it. Will give a definite output once I execute it on my side. But I guess you already know that this function is not just complete program. It needs prototypes or header files to run.