Computer C language programs
C program tutorial for students
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