C program to count words in a string with simple logic. This program will handle all spaces in the given string. Also, it counts special
Constant member functions in C++ class are declared using const keyword, for example, int fun() const. A constant member function of a class cannot modify
itoa C++ typecast function is used for integer to string conversion. The converted string can be in binary, decimal or hexa decimal form depending upon
Check prime number in C++ – Program to check if a number is a prime number or not in C++ with example. What is Prime
Check if char is number C++ – Example to check if a character is a number or digit using isdigit(int c) library function. Note that
Sum of digits in a string C++ – find digits in a given string and calculate the sum of all digits. For example, if a
Simple Min stack C++ example that retrieve minimum element in constant time. Logic is very simple. Time complexity to pop a value from the stack
Copy one queue to another C++ program example. Items will be inserted in a std::queue and this queue will be copied to a temporary queue.
C++ std::queue example – Program will include example of functions queue push , front, pop and size. Queue stores data in FIFO ( First in
Abstraction in Java is just a concept, and abstraction meaning is “Provide necessary information’s only to clients/users and hide unnecessary details. As an abstraction example,