c

Introduction to C

Introduction C is a general-purpose high-level programming language originally developed by Dennis Ritchie at AT & T’s Bell Laboratories (USA) in 1972. It was mainly developed as a system programming language to build an operating system. One of the main features of C includes low-level memory access, a set of …

Introduction to C Read More »

C Installation

To start programming in C, you must have a compiler installed in your system. A compiler is a computer program or a software which converts source code written in a programming language to the  machine language code. In general, a compiler converts your code into a form that your computer …

C Installation Read More »

C Basic Syntax

The C basic syntax specifies the rules for things to be written in a specific sequence to form meaningful instructions for the compiler. For example, how a variable should be declared, how to start a line of code, how to end it, where to put quotes, where to put braces, …

C Basic Syntax Read More »

C Data Types

A data type in c specifies the type of value that a variable can store for example integer, character, or float. Each data type requires a specific amount of memory. Data types in C are defined under three categories Primitive or primary Derived User defined Primitive Data Types – The …

C Data Types Read More »

Variables in C

In C, a variable is a name given to a memory location. It is used to store some value that can be used multiple times in the program through the variable. How a variable is declared? A variable needs to be declared or created first before using. The basic syntax …

Variables in C Read More »

Constants in C

Opposite to variables, constants are those values that do not change throughout the execution of the program. They are also called literals. Like variables, a constant can be of any data type like integer, float, or string. Note: Constants should be declared using upper case names so that they can be distinguished …

Constants in C Read More »

Comments in C

A comment in C is a text that is ignored by the compiler. Let us see how we can use comments in a C program. There are two types of comments in C: Single line comments Multi line comments Single line comments A single line comment can be made by …

Comments in C Read More »

Operators in C

Operators in C are used to perform some operations on variables and constant values. See the example below #include <stdio.h> int main(){ int a = 4, b = 5, c; c = a + b; return 0; } In the above example, we are using the addition operator(+) to add …

Operators in C Read More »