Short note About “Address Operator(&)”

No comments


Address Operator(&) :-

The symbol &(ampersand) is an address operator which is used to access the address of a variable and assign it to a pointer to initialize it consider the following example –

int m=15, *mptr;
float x =2.34,*xptr;
mptr = &m;
xptr = &x;

Here ‘mptr’ contains the address of ‘m’ and ‘xptr’ of x.

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 🎀