c++ 7466

  1. Why is it faster to process a sorted array than an unsorted array?
  2. What is the “-->” operator in C++?
  3. The Definitive C++ Book Guide and List
  4. The most elegant way to iterate the words of a string
  5. What are the differences between a pointer variable and a reference variable in C++?
  6. What does the explicit keyword mean?
  7. Why are elementwise additions much faster in separate loops than in a combined loop?
  8. When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?
  9. How do you set, clear, and toggle a single bit?
  10. Why is “using namespace std” considered bad practice?
  11. What are the basic rules and idioms for operator overloading?
  12. What is The Rule of Three?
  13. Cycles in family tree software
  14. What is the difference between #include <filename> and #include “filename”?
  15. What is the copy-and-swap idiom?
  16. C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?
  17. How can I profile C++ code running in Linux?
  18. Regular cast vs. static_cast vs. dynamic_cast
  19. Is < faster than <=?
  20. Why does changing 0.1f to 0 slow down performance by 10x?
  21. What is a smart pointer and when should I use one?
  22. Image Processing: Algorithm Improvement for 'Coca-Cola Can' Recognition
  23. What are move semantics?
  24. Why should I use a pointer rather than the object itself?
  25. Compiling an application for use in highly radioactive environments
  26. Why can templates only be implemented in the header file?
  27. Why is reading lines from stdin much slower in C++ than Python?
  28. When to use virtual destructors?
  29. What is a lambda expression in C++11?
  30. In C++ source, what is the effect of extern “C”?
  31. What is an undefined reference/unresolved external symbol error and how do I fix it?
  32. Easiest way to convert int to string in C++
  33. What are rvalues, lvalues, xvalues, glvalues, and prvalues?
  34. Replacing a 32-bit loop count variable with 64-bit introduces crazy performance deviations
  35. What is the difference between const int*, const int * const, and int const *?
  36. Undefined behavior and sequence points
  37. Do the parentheses after the type name make a difference with new?
  38. Why do we need virtual functions in C++?
  39. Where and why do I have to put the “template” and “typename” keywords?
  40. Can a local variable's memory be accessed outside its scope?
  41. What are the rules about using an underscore in a C++ identifier?
  42. Difference between private, public, and protected inheritance
  43. How to convert a std::string to const char* or char*?
  44. Why can't variables be declared in a switch statement?
  45. What are the new features in C++17?
  46. Why is this C++ code faster than my hand-written assembly for testing the Collatz conjecture?
  47. What are POD types in C++?
  48. How do you declare an interface in C++?
  49. Why should C++ programmers minimize use of 'new'?
  50. Can I call a constructor from another constructor (do constructor chaining) in C++?