GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  C++
Go To First  |  Previous Question  |  Next Question 
 C++  |  Question 25 of 203    Print  
What is the Basic nature of "cin" and "cout" and what concept or principle we are using on those two?

Basically "cin and cout" are INSTANCES of istream and ostream classes respectively.And the concept which is used on cin and cout is operator overloading. Extraction and Insertion operators are overloaded for input and ouput operations.

Reference:: Object oriented programming in C++ By E.Balagurusamy




  
Total Answers and Comments: 1 Last Update: January 24, 2007   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: smart_coder
 
cin and cout are both objects of iostream class which we use to get input from user and present output to user respectively'<<' and ' >> ' are overloaded operators in iostream classwhen you write : cout << X;an overloaded function of iostream class is called by cout object which passes X as an argument to that functionNow the functionality of the function is such as to print value of X on screen.

Above answer was rated as good by the following members:
zeal_goswami
January 24, 2007 23:32:42   #1  
smart_coder Member Since: January 2007   Contribution: 290    

RE: What is the Basic nature of "cin" and "cout" and w...
cin and cout are both objects of iostream class which we use to get input from user and present output to user respectively'<<' and ' >> ' are overloaded operators in iostream classwhen you write : cout << X;an overloaded function of iostream class is called by cout object which passes X as an argument to that functionNow the functionality of the function is such as to print value of X on screen.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Virtual destructors: If an object (with a non-virtual destructor) is destroyed explicitly by applying the delete operator to a base-class pointer to the object, the base-class destructor function (matching 
Latest Answer : Virtual constructor is not build-in C++ feature but it doesn't mean its not used by devs in code and in conversations. There are many other things that doesn't exist in particular language yet, people find ways around to solve it (SingleTon, Virtual Constructor, ...

What is the Basic nature of "cin" and "cout" and what concept or principle we are using on those two?
Basically "cin and cout" are INSTANCES of istream and ostream classes respectively.And the concept which is used on cin and cout is operator overloading. Extraction and Insertion operators are 

What will be output of the following code#includeusing namespace std;class abc{ public : void main() { cout
Read Answers (5) | Asked by : Avaited

what is inheritance? why we use it? plzz can anybody explain me with one example and where we use that concept? 
Latest Answer : The main use of inheritance is to provide reusability of codes .Through inheritance base class objects and functions are acquired by derived class so there is no need to specify it again in derived class ...

What is the concept of file stream in C++? How is a file opened and closed in C++? 
Latest Answer : File stream are opened when default constructor was called and closed during destructor called. ...


 Sponsored Links

 
Related Articles

jQuery - Basic Alphabetical Sorting

Learning jQuery Basic Alphabetical Sorting Now let s perform a sort on the Title column of the table We ll need a class on the table header cell so that we can select it properly geshibot lang html&quot; Title Author s Publish Date Price geshibot mosgoogle To perform the actual s
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Working with XML in Visual Basic

Working with XML in Visual Basic Extensive markup language and Visual Basic is the odd couple of the industry Visual Basic is one of the most common languages that are being used today This Microsoft introduced language was meant to be middle tier in characteristic but has managed to get the top tie
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school&rsquo;s al
 

SDLC Model Basic Stages

SDLC or the Software Development Life Cycle refers to the steps involved in creating a software from scratch.&nbsp; During earlier days, software used to be scarce and its creation was comparatively easier.&nbsp; Developers could create any programs they want and experience no competition. I
 

The Interview Snafu

How to turn someone else&rsquo;s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won&rsquo;t get over the line without a polished, prof
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Basic PC Skills

For those that have decided to walk into the world of technology, they may be overwhelmed by the types of knowledge that are available.&nbsp; There are several code languages and words as well as different areas that you can move into.&nbsp; If you are a beginner in technology, you can fin
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.&nbsp; By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.&nbsp; IT Certification offers several vari
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape