#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#define MAX 10
|
|
|
|
int main(void) {
|
|
int x = 5
|
|
printf("x is %d\n", x)
|
|
|
|
char *s = "unclosed string;
|
|
printf("%s\n", s);
|
|
|
|
int arr[3] = {1, 2, 3;
|
|
printf("%d\n", arr[1]);
|
|
|
|
if (x > 0 {
|
|
printf("positive\n");
|
|
}
|
|
|
|
char *p = malloc(10;
|
|
free(p);
|
|
|
|
struct { int a; int b; } s = {1, 2};
|
|
s.a = ;
|
|
|
|
return 0;
|