About 12,100,000 results
Open links in new tab
  1. c++ - How are virtual functions and vtable implemented? - Stack …

    Nov 5, 2014 · How are virtual functions implemented at a deep level? From "Virtual Functions in C++": Whenever a program has a virtual function declared, a v - table is constructed for the …

  2. Returning multiple values from a C++ function - Stack Overflow

    Aug 19, 2015 · Is there a preferred way to return multiple values from a C++ function? For example, imagine a function that divides two integers and returns both the quotient and the …

  3. variadic functions - Variable number of arguments in C

    505 In C++11 you have two new options, as the Variadic arguments reference page in the Alternatives section states: Variadic templates can also be used to create functions that take …

  4. Why do we need virtual functions in C++? - Stack Overflow

    Mar 6, 2010 · Virtual functions avoid unnecessary typecasting problem, and some of us can debate that why do we need virtual functions when we can use derived class pointer to call the …

  5. c++ - Why use virtual functions? - Stack Overflow

    You use virtual functions when you want to override a certain behavior (read method) for your derived class rather than the one implemented for the base class and you want to do so at run …

  6. How do I call C++ functions from C? - Stack Overflow

    May 26, 2020 · When C++ was invented, it allowed for compatibility and reuse of C functions, so it was written as a superset of C, allowing C++ to call all the C library functions.

  7. c++ - Return array in a function - Stack Overflow

    Aug 13, 2010 · 140 C++ functions can't return C-style arrays by value. The closest thing is to return a pointer. Furthermore, an array type in the argument list is simply converted to a pointer.

  8. The static keyword and its various uses in C++ - Stack Overflow

    Mar 6, 2013 · B. 'static' keyword used for functions in terms of functions, the static keyword has a straightforward meaning. Here, it refers to linkage of the function Normally all functions …

  9. Can C++ struct have member functions? - Stack Overflow

    7 C++ structs can definitely have member functions. C structs, on the other hand, are a much different beast -- they're essentially arrays that provide names and type information for certain …

  10. Where can I find a list to all C++ functions? - Stack Overflow

    Aug 4, 2021 · The C++ Standard does contain a list of all names in the Standard Library. I don't think you will find it particularly helpful, there are far too many to find anything by reading …