17 lines
286 B
C
17 lines
286 B
C
// Playing with increment and decrement operators
|
|
|
|
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
int a = 10, b = 100;
|
|
float c = 10.5, d = 100.5;
|
|
|
|
printf("++a = %d \n", ++a);
|
|
printf("--b = %d \n", --b);
|
|
printf("++c = %f \n", ++c);
|
|
printf("--d = %f \n", --d);
|
|
|
|
return 0;
|
|
}
|