Add TD7
This commit is contained in:
parent
4296f3a394
commit
553cdc440c
24 changed files with 919 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void f(char foo) {
|
||||
if (foo == 0)
|
||||
printf("foo is 0\n");
|
||||
else
|
||||
printf("foo is %d\n", foo);
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
char *c = malloc(10);
|
||||
f(c[0]);
|
||||
free(c);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue