Languages-C & C Plus Plus [TCS Placement]: Sample Questions 68 - 69 of 119

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 68

C & C Plus Plus

Describe in Detail


What is C language?


  • The C programming language is a structure oriented programming language, developed at Bell Laboratories in 1972 by Dennis Ritchie
  • Derived from an earlier language called “B” (Basic Combined Programming Language - BCPL)
  • Invented for implementing UNIX operating system
  • In 1978, Dennis Ritchie and Brian Kernighan published the first edition “The C Programming Language” and commonly known as K&R C
  • In 1983, the American National Standards Institute (ANSI) established a committee to provide a modern, comprehensive definition of C. The resulting definition, the ANSI standard, or “ANSI C” , was completed late 1988.
  • C is regarded for its efficiency, and is still the most popular programming language for writing system software, though it is also used for writing applications.
Given the Image is Define the C Programming Diagrams

Question 69

C & C Plus Plus

Write in Short

Short Answer▾

What is wrong with this statement? myName = “Robin” ;


  • You cannot use the = sign to assign values to a string variable.
  • Instead, use the strcpy function.
  • The correct statement would be: strcpy (myName, “Robin” ) ;

Developed by: