What is I +++ increment in C ++

can anyone tell me what is the process of incrementing i +++ in c ++.

+3
source share
3 answers

This is a syntax error.

Using the maximum munching rule is i+++indicated as:

i ++ +

The latter +is a binary addition operator. But, obviously, it does not have two operands, which leads to a parser error.

EDIT:

Question from the comment: Can we i++++j?

It is designated as:

i ++ ++ j

which is again a syntax error because it ++is a unary operator.

Similar lines are i+++++jindicated by the scanner as:

i++ ++ + j

, ((i++)++) + j, i++ l, ++ .

+20

i+++; . ++ +++.

i+++j, , . j, i. (i++)+j;

+16

if you mean i++, then increment the value iafter reading it. As an example:

int i = 0;   // i == 0
int j = i++; // j == 0, i == 1
+1
source

All Articles