Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

parameter passing in function

$
0
0
 #include<stdio.h>
 int main()
{
int i=5;
printf("%d %d %d %d %d",i++,i--,++i,--i,i);
return 0;
}

It's giving a output 4 5 5 5 5,but it should be 4 5 5 4 5.Why is this happening?


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>