2. Syntax basics: main, printf and comments

Aap kis language mein padhna chahoge?

Which language do you want to learn in?

Code aur technical words English mein hi rahenge. Aap baad mein bhi language badal sakte ho.

Lesson 2

Syntax basics: main, printf and comments

Unlock this lesson

Create a free account, then buy the course to open every lesson.

What you will learn in this lesson

  • The parts of every C program, line by line.
  • What a statement is, and why it ends with a semicolon.
  • Print text on one line or many lines with printf.
  • Print tabs, quotes and backslashes with escape sequences.
  • Write notes in your code with comments.

45 minutes Lesson 2 of 37

Everything in C Programming: BCA, MCA, BTech & O Level

  • 37 step-by-step lessons
  • 10 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account