C Language Introduction - Presentation
C Language Introduction - Presentation
Introduction
Introduction to C Language
Structure of a
Main Function: Entry point of every C
program, e.g., int main() { }
declaration
data is stored. It can hold different values during the
execution of a program.
⚬ Syntax of Variable Declaration.
datatype variable_name;
⚬ datatype: Specifies the type of data the variable will store
(e.g., int, float, char).
⚬ variable_name: The name of the variable (identifier).
Variables
Rules:
⚬ Variables are case sensitive
⚬ 1st character is alphabet or '_'
⚬ no comma/blank space
⚬ No other symbol other than '_'
Compilation
and Execution
Compilation Steps:
Execution: Run the compiled
program on the system
Identifiers: Constants:
Names for variables, functions, arrays, etc. Fixed values that do not change
Must begin with a letter or underscore, followed by letters, Types include integer, floating-point, character, and string
digits, or underscores constants
Features of C Language