Pointers in C
The pointer is a variable that stores the address of another variable.
These variables can be of any type such as int
, char
, array
, function
, or any other pointer.
Pointer Syntax
Here we declared a pointer ptr
of int
type and a pointer ch
of char
type.
Example of a pointer that stores the address of an integer
Program
Output
Join Our Social Media Connections
0 Comments