Skip to content
Snippets Groups Projects
Commit 7560cc49 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

weitere Beispiele 17.11.2020

parent bf8b6fff
Branches
No related tags found
No related merge requests found
#include <stdio.h>
int main (void)
{
char hello[] = { 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33, 10, 0 };
for (char *p = hello; !*p; p++)
printf ("%c", *p);
return 0;
}
#include <stdio.h>
int main (void)
{
char hello[] = "Hällou, wörldt!\n";
for (char *p = hello; *p; p++)
printf ("%x ", *p);
printf ("\n");
return 0;
}
#include <stdio.h>
int main (void)
{
char hello[] = "Hällou, wörldt!\n";
for (char *p = hello; *p; p++)
printf ("%hhx ", *p);
printf ("\n");
return 0;
}
#include <stdio.h>
int main (void)
{
char hello[] = "Hällou, wörldt!\n";
for (char *p = hello; *p; p++)
printf ("%02hhx ", *p);
printf ("\n");
return 0;
}
#include <stdio.h>
int main (void)
{
char hello[] = "Hallo, Welt!\n";
printf ("%s", hello);
return 0;
}
#include <stdio.h>
int main (void)
{
char hello[] = { 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33, 10, 0 };
printf ("%s", hello);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment