Q--What is a void pointer? Why cant we perform arithmetic on a - TopicsExpress



          

Q--What is a void pointer? Why cant we perform arithmetic on a void * pointer? Ans- The void data type is used when no other data type is appropriate. A void pointer is a pointer that may point to any kind of object at all. It is used when a pointer must be specified but its type is unknown. The compiler doesnt know the size of the pointed-to objects incase of a void * pointer. Before performing arithmetic, convert the pointer either to char * or to the pointer type youre trying to manipulate Happy Holi
Posted on: Mon, 17 Mar 2014 07:13:48 +0000

Trending Topics



Recently Viewed Topics




© 2015