Skip to content

Latest commit

 

History

History

0x00-hello_world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

0x00-hello_world

Project: 0x00. C - Hello, World

Description

This project is an introduction to the C programming language. It covers the basics of C, including compiling, assembling, and linking programs, as well as writing simple programs that print text and determine the size of data types.

Resources

Read or watch

Learning Objectives

General

  • Why C programming is awesome
  • Who invented C
  • Who are Dennis Ritchie, Brian Kernighan, and Linus Torvalds
  • What happens when you type gcc main.c
  • What is an entry point
  • What is main
  • How to print text using printf, puts, and putchar
  • How to get the size of a specific type using the unary operator sizeof
  • How to compile using gcc
  • What is the default program name when compiling with gcc
  • What is the official Holberton C coding style and how to check your code with betty-style
  • How to find the right header to include in your source code when using a standard library function
  • How does the main function influence the return value of the program

Tasks

Task File Description
0. Preprocessor 0-preprocessor Runs a C file through the preprocessor and saves the result into another file.
1. Compiler 1-compiler Compiles a C file but does not link.
2. Assembler 2-assembler Generates the assembly code of a C code and saves it in an output file.
3. Name 3-name Compiles a C file and creates an executable named cisfun.
4. Hello, puts 4-puts.c Writes a C program that prints exactly "Programming is like building a multilingual puzzle".
5. Hello, printf 5-printf.c Writes a C program that prints exactly "with proper grammar, but the outcome is a piece of art".
6. Size is not grandeur, and territory does not make a nation 6-size.c Writes a C program that prints the size of various types on the computer it is compiled and run on.
7. Intel 100-intel Generates the assembly code (Intel syntax) of a C code and saves it in an output file.
8. UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity 101-quote.c Writes a C program that prints exactly "and that piece of art is useful" - Dora Korpar, 2015-10-19.