Operators and realize increment decrement operator functions

#include <stdio.h>
void main ()
{
int x =. 5, Y, Z; // declares three integer variables x, y, z, and initializes the variable x //
Y = x ++; // will the original value of the variable x after 5 to the variable value of x plus y //. 1
the printf ( "% = x D, y D =% \ n-", x, y); // output variable x by the terminal apparatus, y of value //
Z = x ++; // x is the value of the variable after adding 1 to the variable // Z
the printf ( "% D = x, Y =% D, D Z =% \ n-", - x, Y ++ , z); // terminal apparatus via the output variable values of x, y, z of //
printf ( "% D = X \ n-", - X ++); // // output terminal by the value of the variable -x
printf ( "x =% d, y = % d \ n", x, y); // x variable output by the terminal device, the value of y //

Guess you like

Origin www.cnblogs.com/zhangdemingQ/p/12046308.html