&x <----- pointer data type?Code:int x; . scanf("%d",&x);
how do I recognize a pointer data type?
&x <----- pointer data type?Code:int x; . scanf("%d",&x);
how do I recognize a pointer data type?
>&x <----- pointer data type?
Yes, because x is an object and the & operator takes the address of that object. Therefore, the result of the expression is a pointer.
>how do I recognize a pointer data type?
Implicit or explicit? Explicit is easy, either a variable declared as a pointer or an object whose address is taken. Implicit is harder, this mostly concerns the use of arrays where the array is converted to a pointer to the first element.
My best code is written with the delete key.
thx for your help. How about this example? which of this three is a pointer data type ?
Code:int cars[5][4][3}; auto=cars[3][2][1]; auto=cars[3][2][1]; auto=cars[3][2][1];
I can guarantee that auto is not the correct type for all of those assignments. But the first two are pointers and the second is an int.
My best code is written with the delete key.
Im so confuse
Perhaps this will help
http://pw1.netcom.com/~tjensen/ptr/pointers.htm
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.