Basic syntax and functions from the C programming language


a) printf function It is used to show output on the screen
     printf("Hello World!") ;
b) scanf function It is used to take input from the user 
    scanf("placeholder", variables);
c) Comments A comment is the code that is not executed by the compiler, and the programmer uses it to keep track of the code. 
   1. Single line comment 
  // It's a single line comment 
  2.Multi-line comment 
  /* It's 
  a multi-line 
  comment */


Posted on by