Learn C Language

Learn C Programming Language Step By Step. It’s easy to learn c programming language with real-life examples and hands-on. We are trying our best to deliver quality content.

C Programming Syntax

« Previous Page                                                                                                                             Next Page »

C Programming Syntax specifies rules for the sequence of characters to be written in C language. In simple language, it states how to form statements in a C language program – How should the line of code start, how it should end, where to use double quotes, where to use curly brackets, etc.

Understand By Example

if I take anyone statement: printf(“Hello,World”);

Then the tokens in this statement are→ printf, (, “Hello,World”, ) and ; .

So, C tokens are basically the building blocks of a C program.


A semicolon (;) is used to mark the end of a statement and beginning of another statement.

The absence of semicolon at the end of any statement will mislead the complier to think that this statement is not finished. And it will add the next consecutive sentence after it, which may lead to compilation (Syntax) error.

In the above program, I have omitted the semicolon from the printf(“…”)  statement, hence the compiler will think that starting from printf until the semicolon after return 0; statement, is a single statement and this will lead to a compilation error.


Comments are plain simple text in a C program that is not compiled by the compiler. Programmers write comments for a better understanding of the program.

Though writing comments is not compulsory, but it is recommended to make your program more descriptive. It makes the code more readable.

There are two ways in which we can write comments.

  • Using //: This is used to write a single line comment.
  • Using /* */: The statements enclosed within /* and */ , are used to write multi-line comments.

Examples Of Comments


Top Book Suggestion

The two books on C Programming Language that I Personally Recommend. I really loved reading these books. These books are listed for quality content, easy steps, and affordable price. You can get it from Amazon and Flipkart. 

Check The Price On Amazon:

1. C Programming Beginner’s Guide

2. Head First C: A Brain-Friendly Guide

Check The Price On Flipkart:

1. Introduction to C Programming 

2. Head First C: A Brain-Friendly Guide

« Previous Page                                                                                                                             Next Page »

Buy Premium Courses At Lowest Price. Become A Certified Developer Today!

Best Books Selected by Our Experts

Buy Premium Projects At Lowest Price

Ebooks Written by Our Experts


Buy Premium Courses At Lowest Price. Grab Golden Opportunity To Become A Certified Developer Today!

Useful Links

Pin It on Pinterest

Share This