0
Can the Unary - - be used as prefix and postfix in both the languages C and C++ ?
I was told it is not and there are compiler differences. Like to know if this is true.
2 Réponses
+ 5
If - - that is not unary operator that is Arithemic + Unary
but if -- that is truly unary operator and can be used as both prefix and postfix
int C = 2;
printf("%i",C++);C=2;
printf("%i",++C);