Skip to content
Snippets Groups Projects
Select Git revision
  • 08256e681ca958282c556749d6332bf473cf4251
  • master default
2 results

loesung-3c-2.c

Blame
  • Forked from Peter Gerwinski / hp
    Source project has a limited visibility.
    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.