Initial commit

This commit is contained in:
2021-10-01 20:24:05 +02:00
commit 860c025165
194 changed files with 4846 additions and 0 deletions

28
kapitel9/testar-array.c Normal file
View File

@@ -0,0 +1,28 @@
#include <stdio.h>
int main(void)
{
int i;
char a[5] = "B";
char b[5] = { 0 };
printf("char a:\n");
for (i = 0; i<5; i++)
{
if (a[i] == '\0')
printf("tecken: NULL\n");
else
printf("tecken: %c\n", a[i]);
}
printf("\nchar b:\n");
for (i = 0; i<5; i++)
{
if (b[i] == '\0')
printf("tecken: NULL\n");
else
printf("tecken: %c\n", b[i]);
}
return 0;
}