View Single Post
Old May 6th, 2008, 1:27 AM   #2
hammerhead
Newbie
 
hammerhead's Avatar
 
Join Date: Apr 2008
Location: India
Posts: 3
Rep Power: 0 hammerhead is on a distinguished road
Re: Some Beginner Questions

>>What does it mean when you declare something with Void type?
I have only seen pointers of void being declared for example
C++ Syntax (Toggle Plain Text)
  1. int a;
  2. char b;
  3. float c;
  4. void *ptr_void;
  5.  
  6. ptr_void=&a;
  7. ptr_void=&b;
  8. ptr_void=&c;
in the above case, void can point to any data type. Maybe some of the more experienced members can help you out with your specific case.

return void; would mean returning nothing. You can simply use return

>>Whats the difference between NULL and 0?
Sorry but I do not know the answer.

What is the astrix mean in this line of code?
The asterisk is used to declare pointers in C++. In your case you have created an array of pointers of type char.
hammerhead is offline   Reply With Quote