Skip to main content

Posts

Showing posts with the label pointer in c

pointer in c with example

Hello, hope you are well. So now we will talk about pointers in C programming language . Today we talk about various sub topics of pointers are:-  What is a pointer,  Printing address present in pointer,   Accessing a memory block with help of pointer,  pointer to a pointer in c and  Pointer to an Array. Read full article to better understanding, Lets start... pointer in c Introduction of pointer in c:- To store data, we can create a variable or we can create an array. A variable is of scalar type while an array is of aggregate type. Whenever an array or a variable is created, space is allocated in the memory(RAM). For eg:-         int   a[5];      //array int   x; //variable(scalar) Each and every memory block which is created during the execution of a program is assigned a unique address automatically. The address in the hexadecimal format. 0 - 9 A - 10 B - 11 ...