What will be the output of following program? - ProProfs Discuss
Advertisement

What will be the output of following program?

#include <stdio.h> void main(){int intVar=20,x;x= ++intVar,intVar++,++intVar; printf("Value of intVar=%d, x=%d",intVar,x);}

Asked by Nchaudhuri, Last updated: Feb 26, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

nchaudhuri31

nchaudhuri

nchaudhuri31
Nchaudhuri

Answered Dec 16, 2019

Value of intVar=23, x=21
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.