-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrc.c
79 lines (47 loc) · 881 Bytes
/
src.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include <raylib.h>
#include <GLFW/glfw3.h>
#include <stdbool.h>
#include <stdio.h>
int sub(int x, int y);
void voidFunction();
int add(int x, int y);
int sub(int x, int y) {
return x - y;
}
void voidFunction() {
}
float x = 29; // TODO here make it 29.0;
char* st = "ciao";
#define COMPTIME 10;
typedef struct {
int x;
int y;
} Point;
typedef struct Value {
bool b;
Value v;
} Value;
int a = 29;
float b = 29.0;
char* s = "text";
char c = 'a';
bool d = true;
bool e = false;
int main() {
int variable = sub(2, 2); // NOTE This works somehow;
int x = 10;
if (x > 3) {
printf("Hello World\n");
}
while (1) {
printf("something\n");
break;
}
sub(3, -1); // ANOTHER
// Comment
printf("Hello!\n");
return 0;
}
int add(int x, int y) {
return x + y;
}