HOME | LAB PROGRAMMING | RATIONAL ROSE DIAGRAM | COMPUTE GRAPHICS | CLASS DIAGRAM | NETWORK PROGRAMING | BEST OF THE SITE

Unary operator |unary minus in c/c++

main()
{
Int d=- - 3;
printf(“d=%d”,d);
}

Tutorial answer:3
Debugging solution:
Unary minus operator is used twice.apply maths rules
Minus*minus=plus;

0 comments: