hello.c

It’s important to note that besides the code, many important elements from the style guide play a role in here. To be more precise, parts like indenting, commenting, dashes, variable naming convention and sticking with the line length limit are important.

Some common errors when starting to code C

  • Missing semicolon after a statement
  • Mistyping the library name (studio instead of stdio)
  • Forgetting to include newline characters
  • Including a newline in the scanf format (“%d\n”) – typically you don’t want it there
  • Missing & (ampersand) when reading a single integer, float or character
  • Mixing upper and lower case characters – C is case sensitive

The program converted into UML

hello