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 |
What do you know about Volatile keyword in C++? Explain with an example code.
There is a base class sub, with a member function fnsub(). There are two classes super1 and super2 which are sub classes of the base class sub.if and pointer object is created of the class sub which points to any of the two classes super1 and super2, if fnsub() is called which one will be inoked?
Explain why C++ is not purely Object Oriented Language
Identify the error in the following program. include<iostream> using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }
What is Boyce Codd Normal form?
What is the difference between malloc, calloc and realloc?
Write a C++ program to print strings in reverse order.
What are string library functions(syntax).
Explain the difference between C and C++.
What does it mean to declare a member function as static in C++?
What do you by Function Overloading in C++?
0 Answers Akamai Technologies, Infogain,
What Is A Default Constructor in C++ ?