You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
317 B
C
17 lines
317 B
C
11 years ago
|
#include <stdio.h>
|
||
|
|
||
|
int main(void) {
|
||
|
int a = 5;
|
||
|
int b = a + 7;
|
||
|
int c = a - b + 7;
|
||
|
|
||
|
// c is zero now!
|
||
|
printf("c = %i\n", c);
|
||
|
|
||
|
// Depending on e.g. the optimization level, this either throws a
|
||
|
// floating point exception or does other things like returning 10.
|
||
|
if (3/c > 4)
|
||
|
return 5;
|
||
|
return 10;
|
||
|
}
|