C Programming Question and Answers

1. Who developed C language?
  C programming language was developed at Bell Laboratories in 1972 by Dennis Ritchie.
 
Your Name Your Email-ID
Your Answer
2. What is the difference between C and C++?
 
  • Even though C and C++ programming languages are belonging to middle level languages, both are differed in below.
  • C is structure/procedure oriented programming language whereas C++ is object oriented programming language.
  • C language program design is top down approach whereas C++ is using bottom up approach.
  • Polymorphism, virtual function, inheritance, Operator overloading, namespace concepts are not available in C programming language. Whereas C++ language supports all these concepts and features.
  • C languages give importance to functions rather than data. Whereas C++ gives importance to data rather than functions.
  • So, data and function mapping is difficult in C. But, data and function mapping is simple in C++ that can be done using objects.
  • C language does not support user define data types. Whereas C++ supports user define data types.
  • Exception handling is not present in C programming language. Whereas exception handling is present in C++ language.
  • C language allows data to freely flow around the functions. But, data and functions are bound together in C++ which does not allow data to freely flow around the functions.
 
Your Name Your Email-ID
Your Answer
3. Which level is C language belongings to?
 
  • C language is belonging to middle level language.
  • C language behaves as a bridge between machine level (low level) Languages and high level languages.
  • C language is more user friendly than machine level languages.
  • And, C language support does not support all the concepts that high level languages offer. So, C programming languages is called as middle level language.
 
Your Name Your Email-ID
Your Answer
4. What are the types of errors occurred in C program?
  There are four types of errors occurred during the program execution.
  • Syntax errors
  • Runtime errors
  • Logical errors
  • Latent errors
 
Your Name Your Email-ID
Your Answer