+ 1

what is the difference in class and pointers?

14th Aug 2016, 10:17 PM
kvng.zubu
2 odpowiedzi
+ 1
both are completely different.. class smjas different function and objects in it and pointer stores the location of any variable.
18th Aug 2016, 7:02 PM
Tarun kumar parashar
Tarun kumar parashar - avatar
+ 1
A class is a blueprint for an object, an object can contain datatypes (such as primitives (integers, doubles) and other objects) and methods (functions). A pointer is a datatype (I think) pointing at a memory location (on the computer). The memory location usually cointains another datatype. So from a pointer 'a' you can either access the memory locations adress its pointing at (a) or the datatype stored at that adress (*a). &a would return the adress where the pointer is stored.
20th Aug 2016, 8:16 AM
p. regan
p. regan - avatar