Select Git revision
main-return-1.txt 543 B
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 137;
}
cassini/home/peter/bo/2018ws/hp/20181015> gcc -Wall -O functions-6.c -o functions-6
cassini/home/peter/bo/2018ws/hp/20181015> ./functions-6
Hello, world!
cassini/home/peter/bo/2018ws/hp/20181015> echo $?
137
cassini/home/peter/bo/2018ws/hp/20181015> if ./functions-4; then echo "Jawohl!"; else echo "Schade."; fi
3 + 7 = 10
Jawohl!
cassini/home/peter/bo/2018ws/hp/20181015> if ./functions-6; then echo "Jawohl!"; else echo "Schade."; fi
Hello, world!
Schade.