C Programming – Theory Notes
1. Introduction to C
• C is a general-purpose programming language.
• Developed by Dennis Ritchie at Bell Labs.
• It is a middle-level language.
• Used for system software and applications.
2. Features of C
• Simple and easy to learn
• Fast and efficient
• Portable
• Structured programming language
• Rich library functions
3. Structure of a C Program
• Documentation section
• Link section
• Definition section
• Global declaration
• Main function
• Subprograms
4. Variables
• Named memory location used to store data
• Value can change during execution
• Must start with letter or underscore
• Cannot use keywords
• Case-sensitive
5. Data Types
• int – Integer values
1. Introduction to C
• C is a general-purpose programming language.
• Developed by Dennis Ritchie at Bell Labs.
• It is a middle-level language.
• Used for system software and applications.
2. Features of C
• Simple and easy to learn
• Fast and efficient
• Portable
• Structured programming language
• Rich library functions
3. Structure of a C Program
• Documentation section
• Link section
• Definition section
• Global declaration
• Main function
• Subprograms
4. Variables
• Named memory location used to store data
• Value can change during execution
• Must start with letter or underscore
• Cannot use keywords
• Case-sensitive
5. Data Types
• int – Integer values