i know if we use " int *p " that means it is a pointer.
but what int * means. and when do we use this.
In c programming what do this statement mean:- int * ?
here * denotes that it is not a normal variable like any other variables it holds an address of a int variable
pointers can be used in case if ur program uses printers.........
and dynamic programs also use pointers............
pointers are so usefull
may be ur new to programming
if u have any doubts aske me online
My yahoo ID is rgunday@yahoo.com
Reply:most programing languages have a structure to how to code stuff.
in c programming and many others you specify variables by first given then a type say 'int' then the variable name say 'p' then you assign it a value if you want. in this case ('int *') will indicate that the variable will be an integer pointer. But if you just leave 'int*' by itself withouth giving it a variable name. it won't compile and you get a compiler error.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment