C interview questions – page 63

2,130 questions. Tap “Show answer” to check yourself.

Advertisement
  1. In how many ways we can initialize an int variable in C++?

  2. What do you mean by 'Copy Constructor'?

  3. Tell the difference between C and C++ ?

  4. What is C++ access specifiers ?

  5. What do you mean by implicit conversion/coercion in c++?

  6. What do you think is the use of volatile keyword in c++?

  7. What is translation unit in c++?

  8. What is internal linking and external linking in c++?

  9. What are the advantages and disadvantages of Recursive algorithms?

  10. What happens if you free a pointer twice?

  11. How can we print an address?

  12. How does free() method know about how much memory to release?

  13. Advertisement
  14. Tell the difference between malloc() and calloc()?

  15. What do you mean by the heap in memory?

  16. What do you think is the difference between #include <file> and #include "file" ?

  17. Describe recursive functions?

  18. Can #include handle other file formats than .h?

  19. Tell the value of NULL?

  20. What do you mean by a stream in C?

  21. How can we assign one array to another?

  22. What happens when we use incremental operator in a pointer?

  23. How can we redefine macro with different value?

  24. What is the order of operator precedence, left to right or right to left?

  25. What do you mean by an lvalue?

  26. Advertisement
  27. Can the 'sizeof' operator be used to tell the size of an array passed to a function?

  28. Can you change the value of an array tag?

  29. What does const keyword do?

  30. Tell the difference between declaring a variable and defining a variable?

  31. How many types of streams are in C?

  32. What do you mean by text and binary modes?

Advertisement