Can you...? (guess2.c)

This program is exactly the same as the one before. Then, try changing 3 with 2. What happens?
  #include <stdio.h>

  int main()
  {
     int x, a = 10, b = 3;

     x = a / b;
     printf("x is %d\n", x);
     return 0;
  }

 


Where to go

Chapter 2
News Page
Lesson 1 contents
Contacting Me


Roby Joehanes © 2001