What will be the output of following program? Justify your answer.
#include<stdio.h>
void main()
{
int k=8,b;
b=(k++-k++-k++-k++);
printf(ā\n b=%dā,b);
}
#include<stdio.h> void main(){ int k=8,b; b=(k++-k++-k++-k++); //k++ <=> k=k+1 //display the result printf("\n b=%d",b); scanf("%d",&k); }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments