cin>> cout<<

Discussion in 'C++' started by unni krishnan.r, Feb 12, 2011.

  1. unni krishnan.r

    unni krishnan.r Member

    Joined:
    Apr 20, 2010
    Messages:
    209
    Likes Received:
    4
    Trophy Points:
    18
    Occupation:
    education
    Location:
    Kerala
    Home Page:
    http://blogofunni.blogspot.com
    Why cant we treat cin and cout as a keyword instead as an identifier
     
    rami hassan likes this.
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Strange question. By definition cin and cout are identifiers, not keywords. Your question shows you don't understand the difference. A keyword is one that is part of the language, like "int" and "char". An identifier is a name given to something, so if you define "int foo;" then foo is the identifier.
     
    rami hassan and shabbir like this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice