Skip to content

herstand/Learning-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Practice

C Programming Practice Compiled using gcc -std=c11 -pedantic-errors file_name.c [other_file.c, …]

Projects

Hello World

Description

Prints "Hello, world!" to the screen (duh)

Standard functions used:

  • printf()

Concepts Demonstrated

  • function declaration
  • compiling
  • #include

User Input Utilities

Description

Utility functions used in other projects.

Standard functions used:

  • strlen()
  • printf()
  • getchar()

Concepts Demonstrated

  • header files
  • error handling in c (via parameter passing)
  • pass by reference (via pointer passing)
  • strings (explicitly setting '\0' to mark end of char array)

Verify User Input

Description

Prompts the user for a positive integer, validates input and responds appropriately.

Standard functions used:

  • printf()

My util functions used:

  • loadIntRepresentedAsCharArrayFromUser()
  • strtol_strict()

Concepts Demonstrated

  • pointers
  • header files
  • compiling multiple c files at once
  • error handling in c (via parameter passing)
  • pass by reference (via pointer passing)
  • dereferencing (using & symbol)

Age Comparer

Description

Compares user's age with programmer's age.

Standard functions used:

  • printf()

My util functions used:

  • loadIntRepresentedAsCharArrayFromUser()
  • strtol_strict()

Concepts Demonstrated

  • pointers
  • header files
  • compiling multiple c files at once
  • error handling in c (via parameter passing)
  • pass by reference (via pointer passing)
  • dereferencing (using & symbol)

Releases

No releases published

Packages

No packages published

Languages