Skip to content

syswraith/c-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Projects

Managed entirely (for the first time) by git!

Following the great book by the Masters:

The C Programming Language by Brian Kernighan and Dennis Ritchie

Contents:

Topics covered:

  • Printing to stdout
  • Basic arithmatic operations
  • Variables
  • While loop
  • For loop
  • Symbolic Constants
  • Character I/O
  • Array

Notes

while (i< j)
    i = 2 * i
/* Can be without braces if it is a single statement */ 
printf("%3d", 1);
/*       ^ 3 blank spaces and 1 is to the very right*/
printf("%6d", 1);
/*       ^ 3 blank spaces + 3 padding blank spaces = 6 blank spaces*/
printf("%6.3", 1);
/*       ^^^ 3 blank spaces + 3 padding spaces + .3 means 1 -> 001*/
"C" ≠ 'C'
"C" returns a string
'C' returns the ASCII character code of C

About

A repository for C practice!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages