Array notation and representation

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…

Share Button

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…

Share Button

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…

Share Button

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…

Share Button

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…

Share Button

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…

Share Button

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…

Share Button

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…

Share Button

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…

Share Button

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…

Share Button
error: Content is protected !!