What is the difference between C and C++? |c interview questions and answers for freshers

c interview questions and answers for freshers

What is the difference between C and C++?

Best Answer

Example:- 1)

Difference Between C and C++

CC++
Procedure Oriented Programming LanguageObject Oriented Programming language
Most of the focus is on the procedure.Here more attention is paid to the data than to the procedure.
Here the program is divided into small groups called functions.Here the program is distributed in the form of an object.
Functions can be shared through global data.Function can only share data of same class.
Here the data is not safe, it can be moved here and there through the function.The data here is absolutely safe, and it cannot be accessed anywhere through the function.
In this TOP – Bottom Approach is followed.Here the Bottom Up Approach is followed.
  1. What is C language?
  2. where is the C programming language Used?
  3. Who developed C language?
  4. Describe about history of C programming language.
  5. Where is C programming language used or uses of C language?
  6. What is the difference between C and C++?
  7. What is the difference between top down approach and bottom up approach in programming languages?
  8. What is the difference between C and Java?
  9. C language has been developed in which language?
  10. Which year C language is developed?
  11. What is meant by programming language and give some examples?
  12. Describe about C standards.
  13. What are the key features of C language or what are the characteristics of C language?
  14. What is embedded C?
  15. Which level is C language belonging to?
  16. What do you mean by high level, middle level and low level languages and give an example for each?
  17. What is the difference between structured oriented, object oriented and non-structure oriented programming language?
  18. What is compiler?
  19. What is the difference between assembler, compiler and interpreter?
  20. What is printf()?
  21. What is scanf()?
  22. What is meant by protocol?
  23. Execution of a C program starts from which function?
  24. What are all the sections that a C program may have and must have?
  25. What is IDE?
  26. List out some of C compilers.
  27. What is header file in C language?
  28. Is C language case sensitive?
  29. What is Macro? Why do we use macro?
  30. What is data type in C?
  31. What is the difference between int, char, float and double data types?
  32. What is the use of sizeof() function in C?
  33. What is modifier in C?
  34. What are different types of modifiers in C?
  35. What is enum in C?
  36. What is void in C?
  37. What is token in C?
  38. What are the types of C tokens?
  39. What is identifier in C?
  40. What is keyword in C?
  41. List out some keywords available in C language.
  42. What is constant in C?
  43. What are the types of constants in C?
  44. What is variable in C?
  45. What is the difference between constant and variable in C?
  46. Can variable name start with numbers?
  47. What is the difference between variable declaration and variable definition in C?
  48. What are the different types of variable in C?
  49. What is local variable in C?
  50. What is global variable in C?
  51. What is environment variable in C?
  52. What is operator in C?
  53. What are the different types of operator in C?
  54. What is the syntax for ternary operator in C?
  55. What is arithmetic operator in C?
  56. What is assignment operator in C?
  57. What is the relational operator in C?
  58. What is the logical operator in C?
  59. What is the bitwise operator in C?
  60. What are all decision control statements in C?
  61. What are all loop control statements in C?
  62. What is the difference between while and do-while loops in C?
  63. What is the difference between single equal “=” and double equal “==” operators in C?
  64. What is the difference between pre increment operator and post increment operator?
  65. What is the difference between pre decrement operator and post decrement operator?
  66. What is “&” and “” operators in C? What will happen if break statement is not used in switch case in C? Why is default statement used in switch case in C? What is the use of “goto” statement? What value will be assigned to the variable X if a = 10, b = 20, c = 30, d = 40 for the expression X = a/b+cd-c?
  67. What is the value assigned to the following variables? int X1 = 13/3; int X2 = 13%3;
  68. What is the difference between auto variable and register variable in C?
  69. What is the difference between auto variable and static variable in C?
  70. Where should type cast function not be used in C?
  71. How many arguments can be passed to a function in C?
  72. What is static function in C?
  73. If you want to execute C program even after main function is terminated, which function can be used?
  74. Is it possible to call atexit() function more than once in a C program?
  75. What is exit() function in C?
  76. What is the difference between exit() and return() in C?
  77. What is the use of “#define” in C?
  78. What is the syntax for comments in C?
  79. What is “##” operator in C?
  80. What is pragma in C? Or how will you execute functions before and after main function in C program?
  81. How will you override an existing macro in C?
  82. How to check whether macro is defined or not in a C program?
  83. What is the difference between memcpy() and strcpy() functions in C?
  84. What is the difference between memcpy() and memmove() functions in C?
  85. Is there any inbuilt library function in C to remove leading and trailing spaces from a string? How will you remove them in C?
  86. What is the difference between strcpy() and strncpy() functions in C?
  87. Can array subscripts have negative value in C?
  88. What is the difference between array and string in C?
  89. What is pointer in C?
  90. What is null pointer in C?
  91. What is NULL in C?
  92. What is dangling pointer in C?
  93. What is const pointer in C?
  94. What is void pointer in C?
  95. What is dangling pointer in C?
  96. What is wild pointer in C?
  97. What is file pointer in C?
  98. When can void pointer and null pointer be used in C?
Previous articleWhere is C programming language used or uses of C language?|c interview questions and answers for freshers
Next articlePython objective interview questions and answers | Python MCQ (Multiple Choice Questions)

5 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here