Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is void used only with functions? If yes than why?
#1
void is used with function as well as with pointers. There are two types of functions: one that return something and other that do not return anything. We use void with the functions that do not return anything.
If the type of pointer is not known, then we can use void pointer. Void pointer can point to any type of data.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how often do we require to use inline functions and macros. their importance in c++ Vuhelper 0 8,465 05-31-2012, 01:49 AM
Last Post: Vuhelper
  Multidimensional Array vs If-Statements and Functions? in c++ Vuhelper 0 832 07-20-2011, 10:45 PM
Last Post: Vuhelper
  What is difference among main() int main() void main() saneha 1 3,496 05-02-2011, 05:51 PM
Last Post: Vuhelper
  difference between member functions,non member functions and friend functions ? saneha 1 5,146 05-02-2011, 04:57 PM
Last Post: Vuhelper
  can we define same functions for the two or more different objects of different class saneha 1 3,282 05-02-2011, 06:48 AM
Last Post: Vuhelper
  what this function do ? void student ::setName (char *aName); saneha 1 2,133 05-02-2011, 06:35 AM
Last Post: Vuhelper
  What are constant members functions in c++ 2011 saneha 1 2,078 04-29-2011, 08:18 AM
Last Post: Vuhelper
  what is the purpose is isopen() in main menu,difining select, move, rotate functions saneha 1 2,739 04-29-2011, 08:02 AM
Last Post: Vuhelper
  Dear sir please clear the terms i++ and i-- what are their functions? sana.pari 1 2,067 04-24-2011, 05:13 PM
Last Post: Support

Forum Jump:


Users browsing this thread: 1 Guest(s)