fork download
  1. #include <stdio.h>
  2. main ()
  3. {
  4. int a = 10, b = 4, c;
  5. c = a *-b; /* unary minus, negates the value of b */
  6. printf (" %i \n", c);
  7. return (0);
  8. }
  9.  
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
 -40