First Commit
This commit is contained in:
9
SolveExpressions.c
Normal file
9
SolveExpressions.c
Normal file
@@ -0,0 +1,9 @@
|
||||
// WAP to solve following expressions. r1= (a++) + (a++) & r2= (--a) + (a--).
|
||||
|
||||
void main() {
|
||||
int a=10,b;
|
||||
b=(a++)+(a++);
|
||||
printf("Solve r1=(a++)+(a++)\nThe answer is=%d",b);
|
||||
b=(--a)+(a--);
|
||||
printf("\nSolve r2=(--a)+(a--)\nThe answer is=%d",b);
|
||||
}
|
||||
Reference in New Issue
Block a user