diff --git a/Code/hello b/Code/hello new file mode 100644 index 0000000..f77cefe Binary files /dev/null and b/Code/hello differ diff --git a/Code/hello.c b/Code/hello.c new file mode 100644 index 0000000..23882db --- /dev/null +++ b/Code/hello.c @@ -0,0 +1,7 @@ +#include + +int main() +{ + printf("hello world\n"); + return 0; +} diff --git a/Code/sizeof b/Code/sizeof new file mode 100644 index 0000000..e7f2300 Binary files /dev/null and b/Code/sizeof differ diff --git a/Code/sizeof.c b/Code/sizeof.c new file mode 100644 index 0000000..3f1162d --- /dev/null +++ b/Code/sizeof.c @@ -0,0 +1,17 @@ +#include +#include +int main() +{ + printf("int: %ld\n",sizeof(int)); + printf("float: %ld\n",sizeof(float)); + printf("double: %ld\n",sizeof(double)); + printf("char: %ld\n",sizeof(char)); + printf("long: %ld\n",sizeof(long)); + printf("long long: %ld\n",sizeof(long long)); + printf("short: %ld\n",sizeof(short)); + printf("void: %ld\n",sizeof(void)); + printf("bool: %ld\n",sizeof(bool)); + printf("unsigned int: %ld\n",sizeof(unsigned int)); + + return 0; +} diff --git a/Code/test b/Code/test new file mode 100644 index 0000000..c92ca59 Binary files /dev/null and b/Code/test differ diff --git a/Code/test.c b/Code/test.c new file mode 100644 index 0000000..b5268c3 --- /dev/null +++ b/Code/test.c @@ -0,0 +1,8 @@ +#include + +int main() +{ + printf("hello!"); + + return 0; +}