C++ tutorial to swap two numbers without using a third variable

In this C++ example tutorial, we will learn how to swap two numbers without using a third variable. This question is asked in most beginner level interview and you can use the same logic for any programming language.

Read

Node.js console module explanation with examples

Node.js provides a module called console to write debugging data on the console similar to the Javascript console provides by the web browser. This module exports two components :.

Read

C++ program to find LCM of two numbers

In this C++ tutorial program, we will learn how to find the LCM of two user-given number. The program will take these numbers as input from the user and print out the result.

Read

C++ tutorial to find the largest of two user input numbers

In this CPP tutorial, we will learn how to find the largest of two numbers programmatically. The program will ask the user to enter the numbers one by one.

Read

C++ program to find out the total vowels in a string

In this C++ programming tutorial, we will learn how to find out the total number of vowels in a string. The program will take one string as input from the user and it will print out the vowels.

Read

C++ program to change the case of all characters in a string

In this C++ tutorial, we will learn how to change the case of all characters of a user provided string. It will take the string as an input from the user.

Read

C program to sort array in ascending or descending order using pointer

In this C programming tutorial, we will learn how to sort elements of an array in ascending or descending order using C pointer. The program will take the array inputs from the user and sort the array in ascending or descending order.

Read

How to write a multi-line Macro in C

Multi-line macros are useful in many ways. For example, if you need a single if-else statement in different parts of your program, you can define a macro with the if-else condition.

Read

C++ puts() function explanation with examples

In C++, input/output operations can be performed by using C standard libraries. These are defined inside the cstdio.h header file in C++. Full form of cstdio is C Standard Input and Output library.

Read

C++ log10() function explanation with examples

The log10 function is used to find out the base 10 logarithms of a number. It has different overloaded methods to take different types of arguments. In this tutorial, we will learn how to use log10() function in C++.

Read