C Programming language

C Programming Language: Pointers ,Pointer Declaration
Previous Home Next


In C a pointer is a variable that points to or references a memory location in which data is stored. By usimg the pointer we change the content of the memory location.

Pointer Declaration

A pointer is a variable that contains the memory location of another variable. The asterisk tells the compiler that you are creating a pointer variable. Finally we have to give the name of the variable.

// Syntax  
type * variable name;

// e.g.
int *ptr; 
float *string
Previous Home Next