C interview questions – page 64

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

Advertisement
  1. Can static variables be declared in a header file?

  2. When should a type cast be used?

  3. Tell the difference between a string copy (strcpy) and a memory copy (memcpy)?

  4. What do you mean by a static function?

  5. What is the benefit of using const for declaring constants over #define?

  6. Tell the way we can convert a number to a string?

  7. How can you pass an array to a function by value?

  8. What do you mean by dangling pointer in c?

  9. What does a function named as PASCAL do differently?

  10. Why does PASCAL matter? Is there any benefit to using PASCAL functions?

  11. Is using exit() the same as using return?

  12. Should a function contain a return statement if it does not return a value?

  13. Advertisement
  14. In C,Tell the difference between a static variable and global variable?

  15. Describe the meaning of prototype of a function?

  16. Is it possible to execute code even after the program exits the main() function?

  17. Explain wild pointer in c?

  18. When would you use a pointer to a function?

  19. Tell the difference between far pointer and near pointer ?

  20. Can math operations be performed on a void pointer?

  21. Tell the size of void pointer?

  22. What is salary package?

  23. Define a class?

  24. Name types of inheritance supported in C++.

  25. Tell the full form of OOPS?

  26. Advertisement
  27. What is the role of protected access specifier?

  28. What do you mean by inheritance?

  29. Explain the purpose of the keyword volatile.

  30. Explain abstraction?

  31. What do you mean by an object?

  32. Define an inline function?

Advertisement