Programming
- J. MOHAMEDNISHAR
,Console Input and Output
• In C programming, console input and output are
handled using
the scanf() and printf() functions.
• scanf() is used to get input from the user,
while printf() is used to display output on
the console.
Arithmetic Operators and Variables
• C supports several arithmetic operators such as +,
-, *, /, and %.
• Variables are used to store data in a C program. A
variable must be declared before it can be used.
The declaration specifies the type of data that the
variable will hold.
Conditional Statements
• Conditional statements are used to execute
different blocks of code based on whether a
certain condition is true or false.
• The if, else if, and else statements are used to
accomplish this in C.
, Loops and Iteration
• Loops are used to execute a block of code
multiple times.
• There are several types of loops in C, including
for, while, and do-while loops.
Functions and Recursion
• Functions are reusable blocks of code that
perform a specific task.
• In C, functions are defined using the funciton
keyword.
• Recursion is a technique in which a function calls
itself repeatedly until a certain condition is met.
Data Structures and File Handling
• Data structures are used to organize and store
data in a C program.
• File handling is the process of reading from and
writing to files in a C program.
• In C, files are handled using the FILE and fopen()
functions.