c++ 8583

  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. When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?
  8. How do you set, clear, and toggle a single bit?
  9. Why are elementwise additions much faster in separate loops than in a combined loop?
  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. What is the difference between #include <filename> and #include “filename”?
  14. What is the copy-and-swap idiom?
  15. Cycles in family tree software
  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. What is a smart pointer and when should I use one?
  20. Image Processing: Algorithm Improvement for 'Coca-Cola Can' Recognition
  21. Is < faster than <=?
  22. Why is reading lines from stdin much slower in C++ than Python?
  23. Why does changing 0.1f to 0 slow down performance by 10x?
  24. Why can templates only be implemented in the header file?
  25. What are move semantics?
  26. Why should I use a pointer rather than the object itself?
  27. Compiling an application for use in highly radioactive environments
  28. What is the effect of extern “C” in C++?
  29. What is an undefined reference/unresolved external symbol error and how do I fix it?
  30. Easiest way to convert int to string in C++
  31. When to use virtual destructors?
  32. What is a lambda expression in C++11?
  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. Why do we need virtual functions in C++?
  37. Undefined behavior and sequence points
  38. Do the parentheses after the type name make a difference with new?
  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 new features in C++17?
  42. What are the rules about using an underscore in a C++ identifier?
  43. Difference between private, public, and protected inheritance
  44. Why can't variables be declared in a switch statement?
  45. How to convert a std::string to const char* or char*?
  46. What are POD types in C++?
  47. Why should C++ programmers minimize use of 'new'?
  48. Can I call a constructor from another constructor (do constructor chaining) in C++?
  49. Why is this C++ code faster than my hand-written assembly for testing the Collatz conjecture?
  50. How do you declare an interface in C++?