C++ Programming Language

C++ Recent Articles!
C++ Multiple Choice Questions

Basics, C vs C++, C++ vs Java, Input and Output, Operators, Arrays and Strings, Functions, References and Pointers, Dynamic memory allocation, Object Oriented Programming(OOP),Constructor and Destructor, Function Overloading, Operator Overloading, Virtual Functions, Exception Handling, Namespaces, Standard Template Library (STL), Inheritance, C++ Library, C++ Advanced, C++ in Competitive Programming, Puzzles, Interview Questions, Multiple Choice Questions


C vs C++

C++ vs Java

Input and output


Arrays and Strings


Pointers and References

Dynamic memory allocation

Object Oriented Programming(OOP)

Constructor and Destructor

Function Overloading

Operator Overloading

Virtual Functions

Exception Handling


Standard Template Library (STL)


  1. Introduction to STL
  2. Sorting
  3. Searching


  1. Pair (Practice)
  2. Vector (Practice)
  3. List
  4. Dequeue
  5. Deque::empty() and deque::size() in C++ STL
  6. Deque::pop_front() and deque::pop_back() in C++ STL
  7. Deque::clear() and deque::erase() in C++ STL
  8. Queue (Practice)
  9. Forward_list::front() and forward_list::empty() in C++ STL
  10. Queue::front() and queue::back() in C++ STL
  11. Forward_list :: remove() and forward_list :: remove_if() in C++ STL
  12. Queue::push() and queue::pop() in C++ STL
  13. queue::empty() and queue::size() in C++ STL
  14. Priority Queue
  15. Priority Queue
  16. Stack (Practice)
  17. Stack::push() and stack::pop() in C++ STL
  18. Forward_list :: push_front() and forward_list :: pop_front() in C++ STL
  19. Stack::top() in C++ STL
  20. Stack::empty() and stack::size() in C++ STL
  21. Set (Practice)
  22. Std::next_permutation and prev_permutation in C++
  23. Std::stoul and std::stoull in C++
  24. Shuffle vs random_shuffle in C++
  25. Difference between set, multiset, unordered_set, unordered_multiset
  26. Check if a key is present in a C++ map or unordered_map
  27. Std::stable_partition in C++
  28. Valarray slice selector
  29. Std::memchr in C++
  30. Std::strncmp() in C++
  31. Stable_sort() in C++ STL
  32. Std::memcmp() in C++
  33. Std::memset in C++
  34. Std::bucket_count and std::bucket_size in unordered_map in C++
  35. Map of pairs in STL
  36. Range-based for loop in C++
  37. Std::includes() in C++ STL
  38. Std::set_symmetric_difference in C++
  39. Std::sort_heap in C++
  40. Map vs unordered_map in C++
  41. Round() in C++
  42. Modulus of two float or double numbers
  43. Multiset
  44. Map (Practice)
  45. Multimap
  46. Heap using STL C++


  1. sort() in C++ STL
  2. Type Inference in C++ (auto and decltype)
  3. transform() in C++ STL
  4. Variadic function templates in C++
  5. Template Specialization
  6. Implementing iterator pattern of a singly linked list
  7. Binary Search functions in C++ STL
  8. Descending order in Map and Multimap of C++ STL
  9. Insertion and Deletion in STL Set C++


C++ Library

  1. <random> file – generators and distributions
  2. Array type manipulation
  3. std::stod, std::stof, std::stold in C++
  4. C program to demonstrate fork() and pipe()
  5. Complex numbers in C++ | Set 1 Set 2
  6. Inbuilt library functions for user Input
  7. Rename function in C/C++
  8. Chrono
  9. valarray class
  10. Floating Point Manipulation (fmod(), remainder(), remquo() … in cmath)(Practice)
  11. Character Classification: cctype
  12. Snprintf() in C library
  13. Boost::split in C++ library
  14. Modulus of two float or double numbers
  15. Is_trivial function in C++
  16. Array sum in C++ STL
  17. Div() function in C++
  18. Exit() vs _Exit() in C and C++
  19. Std::none_of in C++
  20. Isprint() in C++
  21. Iscntrl() in C++ and its application to find control characters
  22. Std::partition_point in C++
  23. Iterator Invalidation in C++
  24. Fesetround() and fegetround() in C++ and their application
  25. Rint(), rintf(), rintl() in C++
  26. Hypot(), hypotf(), hypotl() in C++
  27. Std::gslice | Valarray generalized slice selector
  28. std::setbase, std::setw , std::setfill in C++
  29. Strxfrm() in C/C++
  30. Set position with seekg() in C++ language file handling
  31. Strstr() in C/C++
  32. Difftime() C library function
  33. Socket Programming
  34. Precision of floating point numbers in C++ (floor(), ceil(), trunc(), round() and setprecision())
  35. <bit/stdc++.h> header file
  36. std::string class in C++
  37. Merge operations using STL in C++ (merge, includes, set_union, set_intersection, set_difference, ..)
  38. std::partition in C++ STL
  39. Ratio Manipulations in C++ | Set 1 (Arithmetic) , Set 2 (Comparison)
  40. numeric header in C++ STL | Set 1 (accumulate() and partial_sum()), Set 2 (adjacent_difference(), inner_product() and iota())
  41. Bind function and placeholders
  42. Array class
  43. Tuples
  44. Regex (Regular Expression)
  45. Common Subtleties in Vector STLs
  46. Understanding constexpr specifier
  47. unordered_multiset and its uses
  48. unordered_multimap and its application
  49. Populating a vector in C++ using fill() and fill_n()
  50. Writing OS Independent Code in C/C++
  51. C Program to display hostname and IP address
  52. Database Connectivity using C/C++
  53. C++ bitset and its application
  54. unordered_map in STL and its applications
  55. unorderd_set in STL and its applications
  56. nextafter() and nexttoward()

C++ Advanced

C++ in Competitive Programming


Interview Questions

Company Wise Coding Practice    Topic Wise Coding Practice