Skip to content

Latest commit

 

History

History

0x00-hello_world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

img

Introduction to programming in C

Intro

In this session, we will take a deep dive into introduction to programming in C

Resources

  1. A brief history of the C programming Language
  2. The C program compililation Pipeline
  3. How to print out text to the screen (using printf() or puts() )
  4. Betty coding style.... No its not what you think
  5. How does the main() function influence the return value of a program?
  6. Header files in C
  7. Your first C program
  8. Keywords or reserved words in C
  9. Data types in C

Man/Help

  • gcc
  • printf
  • puts
  • putchar

Learning objectives

By the end of the session, you should have a pretty solid understanding of the following.

  • Why C programming is awesome
  • Who invented C
  • Who are Dennis Ritchie, Brian Kernighan and Linus Torvalds
  • How to compile using gcc
  • 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
  • What is the default program name when compiling with gcc
  • What is the official 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