C Inputs and Outputs in C ProgrammingWhenever a program is written, it will mainly have certain input values from the users for which read more
Keywords in C ProgrammingWhen we write a code, we cannot write everything in plain English. We need to follow certain rules read more
Identifiers in C ProgrammingIdentifiers are the user defined terms or names in the code, mainly used to identify variables, read more
Variables in C ProgrammingIdentifiers are of two types: variables and functions. The rule for creating names and using them read more
Constants in C ProgrammingConstants are also variables but their values will not change throughout the program. They are also read more
Data Types in C programmingWhen we code in a program, we need to store certain values for latter use in the program. Such read more
Storage Classes in C ProgrammingWhen we create a variable, it is actually creating a memory space in system to hold the value. In read more
Automatic Storage Class in C programmingThis is a storage class for local variables. That means these types of variables are defined within read more
Register Storage Class in C ProgrammingThis is also used for the local variables but used when faster access is required. This type of read more
Static Storage Class in C ProgrammingThis is a storage class for global variables. That is, it will have scope in the block or function read more
External Storage Class in C ProgrammingThis storage class is also used for global variables. It also acts like a static variable. But its read more
Operators in C programmingWhen we code a program, our main goal is to perform some operations on various variables. These read more
Operator Precedence and Its Associativity in C ProgrammingWe have seen so many operators above. One can use all the operators in the same expression. but read more
Arrays in C ProgrammingArrays Introduction In order to understand what is array and why array, let us first consider an read more
Multi-Dimensional Arrays in C ProgrammingConsider a 3X3 matrix. It has 3 rows and 3 columns. When we say 3 rows and 3 columns, it means that read more
Array Memory Allocation in C ProgrammingWe have already discussed that whenever an array is declared in the program, contiguous memory to read more
Advantages and Disadvantages of Array in C ProgrammingAdvantages It is better and convenient way of storing the data of same datatype with same size. It read more
Structures in C ProgrammingIntroduction When we write programs to address real world requirements, variables and their read more
Unions in C ProgrammingConsider a program which has to accept the person type – student or employee and according to read more
Difference Between Structures and Unions in C ProgrammingStructure variables can be declared while While defining the structure After defining the structure read more
Typedef in C ProgrammingWe have seen how to declare structures and unions, and to initialize and access them. Sometimes in read more
Decision Making and Loops in C ProgrammingA normal program is not a sequential execution of expressions or statements one after the other. It read more
Break, Continue and Goto in C ProgrammingC is the language which executes the statements within it sequentially – one after the other. read more
Switch Statement in C ProgrammingThis statement is similar to ‘if’ statement. This is used when we have to select a set of read more
Functions in C ProgrammingIntroduction Suppose we have to write a program to input two numbers and perform arithmetic read more
Strings in C ProgrammingIn datatypes of C, we have learned character datatype. It stores single character in it and read more
Files I/O in C ProgrammingIntroduction to files When we write any program, it will have certain inputs and outputs. So far we read more
Preprocessor Directives in C ProgrammingIntroduction When we write a program, it is not always straight forward. We will always deal with read more
Memory Management in C ProgrammingIntroduction Every programming language deals with memory in the system. Each and every variable read more
Pointers in C ProgrammingC is a programming language. Like any other programming language, it uses variables in it to read more
Scope Rules in C ProgrammingScope of a variable is the visibility of that variable within the program or within function or read more
Bit Fields in C programmingBit Fields Suppose we have a Student structure with his ID and age like below. typedef struct read more
Error, Handling, C programmingError Handling Suppose we are dividing two numbers and one of them is zero. In this case the read more
Command Line Arguments in C ProgrammingCommand Line Arguments Any program is composed of inputs and outputs. Inputs are given to the read more
Typecasting in C Programming  Typecasting Suppose we need to add two numbers where one is an integer value (whole number) read more
Initialization and Accessing Pointers in C ProgrammingWe have so far seen how to declare different types of pointers. Let us see how to initialize them read more
Null Pointers in C ProgrammingWe have seen above that it is not necessary to allocate memory as soon as we declare it. We can read more
Pointer Arithmetic in C ProgrammingAs we have seen earlier, even though pointer is a variable and points to different data values, it read more
Constant Pointers in C ProgrammingUsually variables hold values and those values can be changed as per the requirement. But we have read more
Array Pointers in C ProgrammingArrays are the list of values of same datatype stored in contiguous memory locations. They are read more
String Pointers in C ProgrammingCharacter datatypes are used to hold only 1 byte of character. It holds only one character in a read more
Pointers to Structure in C ProgrammingArrays will always hold elements of same datatype. i.e. ; its elements will be always integer, read more
Pointers to Pointers in C ProgrammingWe have seen how to declare, initialize and use a pointer variable. We have understood that pointer read more
Dynamic Memory Allocation Pointers in C ProgrammingIn above all cases, pointer variables are not initialized when it is declared. It is in latter read more
Pointers to Function and Function ArgumentsSo far we have discussed about pointers to variables and data objects. Pointers can also be used read more
Return Pointer from Function in C ProgrammingAbove examples described how to create a pointer to function and how to use them in function. read more
Common Mistakes done in PointersAs pointers are little different from any other variable, and still considered as normal variable, read more
Pointer Construct in C ProgrammingPointers are not defined to only variables, arrays structures or functions. We can declare a read more
Important Points about Pointers in C ProgrammingLike any other variable, Pointers are also a variable which holds the address of another variable read more
Dynamic Memory Allocation to Multidimensional Array PointersWe already know why we need to allocate memory and how to allocate memory to a pointer variable. We read more
Type Casting in C ProgrammingIn a program, we might have declared a variable as of one datatype. For some reason, we would need read more
C Instructions in C ProgrammingC instructions are the commands in the program that instructs the compiler to do certain action. read more