icon

Learn Hub


Home   Html   Css   JavaScript   React js   C   C++   Python   MySQL   Java   Swift            


clogo   C Programming

What is C?

C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. The main reason for its popularity is because it is a fundamental language in the field of computer science. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

Variables & Constants in C

  1. Variables
  2. Variables in C are named memory locations used to store data that can vary during the execution of the program. They are defined with a specific data type that determines the size and type of data they can hold. Here are the key points about variables:
  3. Constants
  4. Constants in C are values that do not change during the execution of a program. They can be of any data type and are declared using the const keyword. Constants provide a way to make code more readable and maintainable by giving meaningful names to values that remain fixed.

Operators & Control flow in C

  1. Operators
  2. Operators in C can be categorized into several types based on their functionality:

  3. Control Flow Statements
  4. Control flow statements dictate the order in which statements in your code are executed based on certain conditions or loops. Key control flow statements in C include:

File handling & Error Handling

  1. File Handling in C
  2. Error Handling in C

Data types in C

Datatypes

  1. Basic Data Types
  2. Derived Data Types

Example Of Source Code