#include<stdio.h>
#include<conio.h>
void main(){
clrscr();
int i,j,k;
i=10;
k=10;
j=i++ + i--;
printf("\nValue of i after expression : %d",i);
printf("\nPrinting from Variable : %d",j);
printf("\nPrinting from Expression : %d",k++ + k--);
printf("\nValue of k after expression : %d",k);
getch();
}
the output is:
Value of i after expression : 10
Printing from Variable : 20
Printing from Expression : 21
Value of k after expression : 10
i hope you have understood the question.
Thanks
Manmay
#include<conio.h>
void main(){
clrscr();
int i,j,k;
i=10;
k=10;
j=i++ + i--;
printf("\nValue of i after expression : %d",i);
printf("\nPrinting from Variable : %d",j);
printf("\nPrinting from Expression : %d",k++ + k--);
printf("\nValue of k after expression : %d",k);
getch();
}
the output is:
Value of i after expression : 10
Printing from Variable : 20
Printing from Expression : 21
Value of k after expression : 10
i hope you have understood the question.
Thanks
Manmay