Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 2016ws
  • 2017ws
  • 2018ws
  • 2019ws
  • 2020ws
  • 2021ws
  • 2022ws
  • 2023ws
  • 2024ws
9 results

Target

Select target project
  • pgerwinski/hp
  • bwildenhain/hp
  • Daniel.Eisi/hp
  • aahrens/hp
4 results
Select Git revision
  • 2016ws
  • 2017ws
  • 2018ws
  • master
4 results
Show changes
Showing
with 0 additions and 154 deletions
#include <stdio.h>
int main (void)
{
int i = 3;
printf ("%d\n", ++i);
printf ("%d\n", ++i);
return 0;
}
../common/logo-hochschule-bochum-cvh-text.pdf
\ No newline at end of file
#include <stdio.h>
int main (void)
{
printf ("Eine Zahl: %d. Ein Text: %s.\n", 137, "Hello, world!");
return 0;
}
#include <stdio.h>
int main (void)
{
printf ("Eine Zahl: %d. Ein Text: %s.\n", 137, "Hello, %d world!", 42);
return 0;
}
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 12;
}
cassini/home/peter/bo/2017ws/hp/20171016> gcc -Wall -O return-2.c -o return-2
cassini/home/peter/bo/2017ws/hp/20171016> ./return-2
Hello, world!
cassini/home/peter/bo/2017ws/hp/20171016> if ./return-1; then echo "Hurra!"; else echo "Schade!"; fi
Hello, world!
Hurra!
cassini/home/peter/bo/2017ws/hp/20171016> if ./return-2; then echo "Hurra!"; else echo "Schade!"; fi
Hello, world!
Schade!
cassini/home/peter/bo/2017ws/hp/20171016> ./return-1
Hello, world!
cassini/home/peter/bo/2017ws/hp/20171016> echo $?
0
cassini/home/peter/bo/2017ws/hp/20171016> ./return-2
Hello, world!
cassini/home/peter/bo/2017ws/hp/20171016> echo $?
12
#include <stdio.h>
int main (void)
{
printf ("%d\n", 42);
2 + 2;
return 0;
}
#include <stdio.h>
int main (void)
{
int a = printf ("Hallo!\n");
printf ("a = %d\n", a);
return 0;
}
#include <stdio.h>
int main (void)
{
int a = printf ("%d\n", 137);
printf ("a = %d\n", a);
return 0;
}
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n" + 4);
return 0;
}
#include <stdio.h>
int main (void)
{
printf ("Die Antwort lautet: %x.\n", 'B');
return 0;
}
File deleted
File deleted
../common/logo-hochschule-bochum-cvh-text.pdf
\ No newline at end of file
PRAKTIKUMSTERMINE
=================
Mi 08.11.2017
Mi 15.11.2017
(Versuch 2)
#include <stdio.h>
int main (void)
{
const char *p = "Hello!\n";
p[1] = 'a';
printf ("%s", p);
return 0;
}
#include <stdio.h>
int main (void)
{
char hello_world[] = { 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33, 10, 0 };
int i = 0;
while (hello_world[i])
printf ("%c", hello_world[i++]);
return 0;
}
#include <stdio.h>
int main (void)
{
char hello_world[] = { 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33, 10 };
int i = 0;
while (hello_world[i])
printf ("%c", hello_world[i++]);
return 0;
}
#include <stdio.h>
int main (void)
{
int hello_world[] = "Hello, world!\n";
int i = 0;
while (hello_world[i])
printf ("%c", hello_world[i++]);
return 0;
}
#include <stdio.h>
int main (void)
{
char *p = "Hello!\n";
p[1] = 'a';
printf ("%s", p);
return 0;
}
#include <stdio.h>
char *string;
int main (void)
{
string = "Hello, world!\n";
printf ("%s\n", string);
return 0;
}