02-Introduction C Topic-01
02-Introduction C Topic-01
WHAT IS A PROGRAM?
• A computer program is a list of instructions that tell the
computer what to do.
• Programs are written in programming languages.
• A collection of computer programs, libraries and other
related data are called software.
• Some examples of some software are: Windows 10, MS
Word, Adobe Photoshop etc.
WHAT IS A PROGRAMMING LANGUAGE?
Machine languages
Assembly languages
High-level languages
COMPUTER LANGUAGES
#include <stdio.h>
#include <stdlib.h> Header file
}
THE ‘MAIN’ FUNCTION
• Functions can return information. The keyword int to the
left of main indicates that main “returns” an integer
(whole-number) value. In this example, the value ‘0’ is
returned from the function using a return statement. We’ll
discuss about functions in detail later in this module.
• To specify your own filename for the executable file instead of the default
filename, following command can be used.
• After compiling the program, you can run the executable file that was
created.
**HAPPY CODING**