- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.

Sponsored Links

Interview Questions
Our Services

Question :

What are the advantages of using cin and cout compared to scanf(...) and printf(...), respectively?

Category C++ Interview Questions
Rating (3.8) By 17 users
Added on 5/3/2016
Views 712
Rate it!



Compared to the standard C functions printf() and scanf(), the usage of the cin and cout is more type safe.
The format strings, which are used with printf() and scanf() can define wrong format specifies for their arguments, for which the compiler does not warn.
In contrast, argument checking with c in and cout is performed by the compiler.
C in and Cout are stream classes that could be used to receive and print objects respectively.

If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What are static members and static functions?
    View Answer
    What are storage qualifiers in C++ ?
    View Answer
    What is the use of default constructor?
    View Answer
    What are tokens in C++?
    View Answer
    Define destuctors ?
    View Answer
    What is the difference between a template class and class template?
    View Answer
    What are the differences between new and malloc ?
    View Answer
    What is difference between template and macro ?
    View Answer
    What do you mean by early binding?
    View Answer
    How can we access protected and private members of a class?
    View Answer
    what should the 64-bit integer type on new,64-bit machines be?
    View Answer
    Applications of c++ object oriented programs?
    View Answer
    What is a mutable member?
    View Answer
    Define a constructor - What it is and how it might be called (2 methods).
    View Answer
    Anything wrong with this code?
    T *p = 0;
    delete p;

    View Answer
    Anything wrong with this code?
    T *p = new T[10];
    delete p;

    View Answer
    What is an orthogonal base class?
    View Answer
    What is an adaptor class or Wrapper class?
    View Answer
    What is the dangling pointer in c++
    View Answer
    What is a mixin class?

    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL C++ Interview Questions & Answers

    User Options
    India News Network

    Latest 20 Questions
    what is the maximum segment length of a 100Base-FX network?
    What is mesh topology?
    What is IPv6?
    What is one basic requirement for establishing VLANs?
    When it comes to networking, what are rights?
    What protocols fall under the TCP/IP Internet Layer?
    What is the role of IEEE in computer networking?
    What is sneakernet?
    Explain profile in terms of networking concept?
    What can be done to fix signal attenuation problems?
    What is one advantage of mesh topology?
    What do mean by tunnel mode?
    Explain the importance of authentication.
    How are IP addresses arranged and displayed?
    What is the importance of Encryption on a network?
    What is multicast routing ?
    What is the importance of Encryption on a network?
    What is multicast routing?
    What is SMTP?
    What is the difference between CSMA/CD and CSMA/CA?

    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |

    Copyright ©2003-2016, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Cache = 0.007812 Seconds