Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

README.md

study topics for elementary c programming

variables

  • integer
  • floating points number
  • character
  • string
    • <string.h>
    • strcpy()
    • strlen()
  • boolean
  • null
  • error

cli input/output

  • print data to terminal
  • receive input from terminal
    • printf()
    • scanf()
    • gets()
    • puts()

repetition statement

  • for-loop
  • while-loop
  • do-while

conditional statement

  • if-else
  • switch
  • ternary

collection type

  • array
    • one-dim array
    • multi-dim array
  • union
  • enums
  • struct

function

  • function delcaration
  • input/return parameters
  • recursion

pointers

  • create pointer variables
  • dereferencing operator
  • address-of operator
  • using pointer arithmatic with array
  • using pointer with function
  • pointer to pointer
  • pointer to function
  • pointer to struct
  • create dynamic array using pointers and memory allocation

memory alocation

  • dangling pointers
  • heap
  • stack
  • malloc()
  • calloc()
  • realloc()
  • free()

modules

  • import
  • export
  • headers file ( file.h files)
  • makefile
    • compiling
    • linking
  • using 3rd-party packages/modules

file i/o

  • open, close, read, write files
    • fopen()
    • fclose()
    • fread()
    • fwrite()
    • fprintf()
    • fscanf()
  • binary operations
  • text file operations
  • binary files vs text files

preprocessor and marcros

  • preprocessor
    • #define
    • #include
    • #ifdef
    • #ifndef
    • #pragma
  • marcros
    • macro definition
    • argument macros
    • pitfalls of macros
  • conditional compilation
    • use preprocessor directives for conditional compilation

error handling

  • segmentation faults
  • memory leak
  • buffer overflows
  • usage of assert.h to check errors during development