+ 1
when I use *ip to initialize the pointer variable,
int x; int *ip; *ip = &x; Visual Studio gives an error: Error C2440 '=': cannot convert from 'int *' to 'int' Can someone please explain to me why i get this error?
2 Respostas
+ 4
Use
ip = &x
*ip dereferences and is used to access the value stored at the address held by the pointer ip.
+ 1
ChaoticDawg Thanks