Notes
Read online only

Computer C language programs

C program tutorial for students

6 pages
By

File

File 1

No free preview for this file. Purchase this product to access the full file.

Description

Computer C language programs

What is C Language?

C is a computer programming language.

We use C language to give instructions to a computer and tell it what to do.

Just like we use English or Hindi to communicate with people, we use C language to communicate with computers.

Example:

We want the computer to add two numbers.

We write a C program to perform addition.

The computer follows our instructions and displays the answer.

In simple words:

C language helps us communicate with computers and make them perform different tasks.

Why Do We Learn C Language?

1.To understand basic programming concepts.

2.To develop logical thinking.

3.To learn how computer programs work.

4.To build a foundation for learning other programming languages.

Features of C Language

1.Simple and powerful.

2.Fast execution.

3.Structured programming.

4.Portable language.

5.Supports functions and pointers.

Basic Structure of a C Program

#include <stdio.h>

int main()

{

printf("Hello World");

return 0;

}

Important Terms in C Language

#include : Includes a header file

stdio.h : Standard input/output header file

main() : Starting point of program execution

printf() :Displays output

scanf() :Accepts user input

return 0 Indicates successful execution

Tags

c programming
if-else
basics
syntax
programming

About the Author

I will be taking sessions for subjects like hindi, maths and marathi. I have overall one year of experience in teaching. I use easy to understand technics with engaging content in the sessions.

View Profile
Written byTrupti Nandyalkar
₹30₹6050% OFFNew
This includes
  • 6 pages
  • 0.32 MB PDF
  • English
  • Read online only
₹30₹6050% off

Spotted a mistake or something out of date on this page?