Interviewer And Interviewee Guide

C++ Syntax Interview Question:

How to demonstrate the use of a variable?

Submitted by: Muhammad
Here is a sample program demonstrating the use of a variable:

#include <iostream>

using namespace std;

int main()
{
int thisisanumber;

cout<<"Please enter a number: ";
cin>> thisisanumber;
cin.ignore();
cout<<"You entered: "<< thisisanumber <<"n";
cin.get();
}</iostream>
Submitted by: Muhammad

Read Online C++ Syntax Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.