Languages-C & C Plus Plus [3i Infotech Placement]: Sample Questions 245 - 246 of 354

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 245

C & C Plus Plus

Describe in Detail


What is a keyword? State two keywords of C?


  • Keywords are words used in the language with special meaning and cannot be used by programmer for named entities like variables.
  • Below the list of keywords used in standard C are:

    auto double int struct

    break else long switch

    case enum register typedef

    char extern return union

    const float short unsigned

    continue for signed void

    default goto sizeof volatile

    do if static while

  • All 32 keywords are in lower case letters.
  • Keywords are reserved and cannot be redefined.
  • Below rules must be kept in mind when using keywords.
    • Keywords are case sensitive. For example, return is a keyword and it must be used as is.
    • So it cannot be used as Return, or RETURN.
    • The keywords have special meaning in the language and cannot be used for any other purpose such as constant name or variable name.

Question 246

C & C Plus Plus

Write in Short

Short Answer▾

What are the files which are automatically opened when a C file is executed? Answer: stdin (standard input) , stdout (standard output) , stderr (standard error)


  • In a computer programming, standard streams are pre connected input and output communication channels between a computer program and its environment when it begins execution
  • The three I/O connections are called standard input (stdin) , standard output (stdout) , and standard error (stderr) .
Define the Standard Stream is Connected Input and Output Communication Channels

Developed by: