What is a pointer ? Write a C program using pointer to print the name and price of the items sold in a retail shop on a specific date.
What is a Pointer? Write a C program using a pointer to print the name and price of the items sold in a retail shop on a specific date. Pointers in C are easy and fun to learn. Some C programming tasks are performed more easily with pointers, and other tasks, such as dynamic memory allocation, cannot be performed without using pointers. So it becomes necessary to learn pointers to become a perfect C programmer. Let's start learning them in simple and easy steps. #include <stdio.h> int main () { int var1 ; char var2 [ 10 ]; printf ( "Address of var1 variable: %x\n" , & var1 ); printf ( "Address of var2 variable: %x\n" , & var2 ); return 0 ; } 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 pointer before using it to store any variable address. The general form of a pointer v...