🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to C Notes
Topic #5

Statements


Statements

A computer program is a list of instructions that a computer follows.

In C, these instructions are called statements.

The following statement tells the program to print the text Hello World! to the screen:

Example

printf("Hello World!");

Every statement in C must end with a semicolon ;.

If you forget the semicolon, the compiler will show an error and the program will not run:

Example

printf("Hello World!")

Many Statements

Most C programs contain more than one statement.

Statements are executed one by one, in the same order as they are written:

Example

printf("Hello World!");
printf("Have a good day!");
return 0;

Example explained

This program contains three statements:

  1. printf("Hello World!");
  2. printf("Have a good day!");
  3. return 0;

The first statement runs first and prints Hello World!. Then the second statement runs and prints Have a good day!. Finally, the last statement runs and ends the program.

Note: Remember: Each statement is one instruction, and it must end with a semicolon. Coming up: The next chapter will show you how to control output and add new lines.

Want to go beyond the notes?

Join CodingNow 2.0's C course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

Statements – FAQs

Quick answers about learning Statements in C.

This free note from CodingNow 2.0 explains Statements in C — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every C topic on CodingNow 2.0, including Statements, is 100% free with no signup required.
With focused practice, most students grasp Statements in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now