![]() ![]() ![]() You can't declare a variable of type void. In C++, a void pointer can point to a free function (a function that's not a member of a class), or to a static member function, but not to a non-static member function. Non-static member/method of a class or a structure cannot be accessed from a static function 352 An overload operation (+,-,++,- etc. A void* pointer can be converted into any other type of data pointer. A void* pointer can't be dereferenced unless it's cast to another type. If a pointer's type is void*, the pointer can point to any variable that's not declared with the const or volatile keyword. When used in the declaration of a pointer, void specifies that the pointer is "universal." When used for a function's parameter list, void specifies that the function takes no parameters. When used as a function return type, the void keyword specifies that the function doesn't return a value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |