Declaration of Pointer variables in C

No comments



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.

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀