Declaration of Pointer variables in C
Declaration of Pointer variables :-
Like other variables pointers variables should also be declared before using it. The general syntax of declaration is –
data _type * pname;
Examples of some pointer declaration :-
int *iptr;
float * fptr;
char * cptr;
Here iptr is a pointer that should point to variables type integer, similarly fptr and cptr points float and character type respectively.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment