Write a C++ Program to Display Number (Entered by the User).
Solution:
/* C++ Program to Display Number (Entered by the User) */
#include <iostream>
using namespace std;
int main()
{
int number;
cout << "Enter an integer :: ";
cin >> number;
cout << "
The Number entered is :: " << number<<"
";
return 0;
}
Output:
/* C++ Program to Display Number (Entered by the User) */
Enter an integer :: 8
The Number entered is :: 8
Process returned 0
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a C++ Program to find Square Root of a number using sqrt() function.
Write a C++ Program to Display Number (Entered by the User).
Write a C++ Program to Find Sum and Average of n numbers using for loop.
Can we use THIS Pointer in static function – Reason in C++?
What is partial specialization or template specialization?
Can we call C++ OOPS? and Why
When must you use a constructor initializer list?
Identify the error in the following program. #include<iostream.h> void main() { int i = 0; i = i + 1; cout « i « " "; /*comment *//i = i + 1; cout << i; }
What does it mean to declare a member function as virtual in C++?
Question on Copy constructor.
How do you work around them?
What is wrong with this statement? std::auto_ptr ptr(new char[10]);