Array notation and representation All arrays consist of contiguous memory locations. The lowest address corresponds to the first element and the highest address to the last element. Declaring Arrays To…
Month: January 2021
Arrays
Introduction to Arrays An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. Instead of declaring…
Writing and Executing the first C program
Following is first program in C #include <stdio.h> int main(void) { printf(“Hello World”); return 0; } Let us analyze the program line by line. Line 1: [ #include <stdio.h> ] In…
Structure of C program
C is a procedural programming language. It was initially developed by Dennis Ritchie in the year 1972. It was mainly developed as a system programming language to write an operating…
Enumerated data types
Enumeration/Enumerated data types Enumeration(or enum or Enumerated data type) is a user-defined data type in C. It is mainly used to assign names to integral constants, the names make a…
Union
What is a Union? A union is a special data type available in C that allows to store different data types in the same memory location. You can define a union with…
Structure
Arrays allow to define type of variables that can hold several data items of the same kind. Similarly structure is another user defined data type available in C that allows to combine…
Applications of Pointers
Applications of Pointers Imagine your friend needs to go to a grocery store but doesn’t know where one is. In helping them, you can do either: Tell them where the…
Declaration
How to Use Pointers? There are a few important operations, which we will do with the help of pointers very frequently. (a) We define a pointer variable, (b) assign the address of a variable…
Introduction To Pointers
What are Pointers? A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a…