Slide 1 : What is C? Before going up to this question we need to understand
What is a computer program?
“How does it works?”
Slide 2 : There are many parts in a computer system those are categorized in two categories
Hardware
Software
?Hardware is something that you can touch.
?Software is something that you can not touch.
Slide 3 : One of the hardware is CPU the Central Processing Unit.
Also known as the brain of the computer. This part of the computer handles all the activities in the computer system. To make this part work you need a computer program.
A Computer Program is a set of instructions given to computer in order to get the work done.
Slide 4 : Now everyone knows that a computer is an electronic device.
This device needs to be told what work is to be done and how the work should be done. For telling the computer that what work needs to be done and what steps to be followed to complete that work we need to write computer programs in one of the computer languages.
Slide 5 : Computer Language provides:
Platform to type the program
Facility to save the program
Facility to check the program. Also known as compiling the program
Facility to run the program
Facility to check the output of the program
Facility to convert the program so that it can be used anywhere without the help of programming language.
Slide 6 : Now we can discuss What is C?
“C is a procedure-oriented programming language” Procedure Oriented means we have a set structure or procedure to write the program which must be followed.
Slide 7 : This is the compiler of C++ language that provides all the facilities needed to type the program. This compiler can be used to type the programs of C also.
Slide 8 : This is the File menu similar to the File menu of Word or some other word processor.
Slide 9 : Clicking on the New option will give the next screen.
Slide 10 : This blue screen is called the instruction screen where we can type our instructions.
Slide 11 : /*The first program in C*/
#include
#include
void main()
{
printf(“Hello! This is C”);
}
Slide 12 : After typing these lines now we need to press some key combinations. Alt + F9 or F9 ? Compilation
Slide 13 : After Pressing Alt+F9 or F9 This screen will appear with a success message if the program is typed perfectly without any mistake. Pressing any key will take you back to the blue screen
Slide 14 : Now press Ctrl + F9 to run the program. This will make your screen go black for 1 or 2 seconds and will come back to the blue screen again.
Slide 15 : To see the result of your program you need to press Alt +F5. This black screen is called user screen. All the results of your programs will appear on this screen.