Skip to content

Files

Latest commit

9c3e9d4 · Feb 17, 2023

History

History

0x00-hello_world

1

0x00. C - Hello, World

2 ​ 3

Description

4 What you should learn from this project: 5 ​ 6

  • Why C programming is awesome (don’t forget to tweet today, with the hashtag #cisfun :)) 7
  • Who invented C 8
  • Who are Dennis Ritchie, Brian Kernighan and Linus Torvalds 9
  • What happens when you type gcc main.c 10
  • What is an entry point 11
  • What is main 12
  • How to print text using printf, puts and putchar 13
  • How to get the size of a specific type using the unary operator sizeof 14
  • How to compile using gcc 15
  • What is the default program name when compiling with gcc 16
  • What is the official Holberton C coding style and how to check your code with betty-style 17
  • How to find the right header to include in your source code when using a standard library function 18
  • How does the main function influence the return value of the program 19 ​ 20

21 ​ 22

23

  • Write a script that runs a C file through the preprocessor and save the result into another file. 24 ​ 25 ​ 26

27

  • Write a script that compiles a C file but does not link. 28 ​ 29 ​ 30

31

  • Write a script that generates the assembly code of a C code and save it in an output file. 32 ​ 33 ​ 34

35

  • Write a script that compiles a C file and creates an executable named cisfun. 36 ​ 37 ​ 38

39

  • Write a C program that prints exactly "Programming is like building a multilingual puzzle, followed by a new line. 40 ​ 41 ​ 42

43

  • Write a C program that prints exactly with proper grammar, but the outcome is a piece of art,, followed by a new line. 44 ​ 45 ​ 46

47

  • Write a C program that prints the size of various types on the computer it is compiled and run on. 48 ​ 49 ​ 50

51

  • Write a script that generates the assembly code (Intel syntax) of a C code and save it in an output file. 52 ​ 53 ​ 54

55

  • Write a C program that prints exactly and that piece of art is useful" - Dora Korpar, 2015-10-19, followed by a new line, to the standard error. 56 ​ 57 ​ 58

59 ​

Author ✒️

Acknowledgements 🙏

All work contained in this project was completed as part of the curriculum for ALX Africa SE. ALX Africa is an online full-stack software engineering program that prepares students for careers in the tech industry using project-based peer learning. For more information, visit this link.

ALX Africa Logo