fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  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. }
Success #stdin #stdout 0.01s 5316KB
stdin
098401
098401
stdout
 -40