0% found this document useful (0 votes)
2 views

C_Programming_Short_Notes

The document provides short notes on C programming covering key concepts such as variables and data types, operators, control structures, functions, arrays, pointers, structures and unions, file handling, preprocessor directives, and recursion. It highlights the essential elements and functionalities of each topic. This serves as a concise reference for understanding fundamental C programming concepts.

Uploaded by

sys7379883936
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

C_Programming_Short_Notes

The document provides short notes on C programming covering key concepts such as variables and data types, operators, control structures, functions, arrays, pointers, structures and unions, file handling, preprocessor directives, and recursion. It highlights the essential elements and functionalities of each topic. This serves as a concise reference for understanding fundamental C programming concepts.

Uploaded by

sys7379883936
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

C Programming - Short Notes

1. Variables and Data Types

Variables store data values. C supports int, float, char, and more.

2. Operators

C provides arithmetic (+, -, *, /, %), relational (==, !=, >, <), logical (&&, ||, !), and assignment operators.

3. Control Structures

Includes if, if-else, switch-case for decision making; for, while, and do-while for looping.

4. Functions

Reusable blocks of code. Types: with/without arguments and return values.

5. Arrays

Collection of similar data types. Indexing starts at 0.

6. Pointers

Stores address of variables. Use * and & operators.

7. Structures and Unions

User-defined data types that group different data types together. Structures store all members separately,

unions share memory.

8. File Handling

Use fopen, fclose, fprintf, fscanf, etc., to read/write files.

9. Preprocessor Directives
C Programming - Short Notes

Handled before compilation. Examples: #include, #define, #if.

10. Recursion

Function calling itself with a base case to stop recursion.

You might also like