C++ Programming
- Write a C++ Program to print a welcome text in a separate line.
- Write a Program in C++ to add two numbers.
- C++ program for addition of two numbers using functions.
- Add two numbers in C++ using class.
- Addition of two numbers using call by reference in C++
- C++ program to write a program to add two numbers using call by value.
- Swapping of two numbers in C++ without using third variable.
- Swap two numbers in C++ using function.
- C++ program to swap two numbers using class.
- C++ program to swap two numbers using call by value.
- C++ program to swap two numbers using pointers.
- Write a program to swap private data members of two classes using friend function.
- write a program to add data objects of two different classes using friend function.
- Threading in C++.
- C++ thread lambda
- C++ thread lambda with parameter
- C++ thread lambda pass by reference
- Singleton C++ example
What, if any, are the differences between the following definitions: int month = 9, day = 7; int month = 09, day = 07;
The first line int month = 9 and day = 7 are the decimal numbers, whereas the second line o9 and o7 are the octal numbers. Here for Month = o9, month is invalid because 9 is not an octal whereas day = o7 is valid because 7 is octal. Decimal numbers are the numbers which are whole numbers as well as also have fractional part. The octal number system uses numbers from 0 to 7 and has a base of 8.