In this tutorial, we are gonna learn about the Basic syntax of the C programming Language. Every programming language has its own syntax for the written way. similarly, the C language al Basic Syntax of C programming Language so has its own syntax. C language Syntax is very easy to understate and write.

The syntax of c language is a combination of Tokens, Header files, Keywords, Identifier, semicolons and String Literals.

Tokens

Tokens in C are the most important element to be used in creating a program in C. We can define the token as the smallest individual element in C.

Header files

In C language, header files contain the set of predefined standard library functions.

Keywords

Keywords are predefined, reserved words used in programming that have special meanings to the compiler.
There are 32 Keywords in C

auto   double  int  struct  break  else  long  switch  case  
enum  register  typedef  char  extern  return  union  
continue  for  signed  void  do  if  static  while  
default  goto sizeof  volatile  const  float  short  unsigned

Basic Syntax:

#include<stdio.h>
#include<conio.h>
void main()
{
     printf("Hello world");
     getch();
}

Watch the Video Lecture




            Previous                                                                                                                       Next