Interview questions

C interview questions – page 35

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

  1. What is object file? How can you access object file?

  2. How to write a code for replacing a character with astrick sign?

  3. What is the difference between an interface and abstract class?

  4. What is the difference between the following statements?int a[4]={1,2,3,4};int a[]={1,2,3,4);

  5. Define Reusability?

  6. How can we check whether the contents of two structure variables are same or not?

  7. What is the purpose of realloc( )?

  8. Explain the meaning of object in object oriented programming?

  9. What is the difference between text and binary modes?

  10. What does inheritance means in C++? What are the different forms of inheritance? Give an example for each.

  11. The class which acts as interface between the C++ and the Java layer?

  12. How can I make application program using c++, that means, execute as application that have setup and install on other computer run with out c++ compiler?

  13. Explain about inheritance in OOPS?

  14. How to use floodfill() function and what is the use of kbhit?

  15. Main(){signed int bit=512, mBit;{mBit = ~bit;bit = bit & ~bit ;printf("%d %d", bit, mBit);}}

  16. Explain about realistic modeling?

  17. What is a difference between printf and cout and why printf called a function and cout object as both are used to print data?

  18. What are the uses of pointers in c and c++ language?

  19. How to write a program to print its own source code?

  20. How to find entered number is EVEN or ODD without using conditional statement(not using if.. else,if.. , else if..,while, do... while..., for...)

  21. How do I get deterministic finalization in C#?

  22. Which one is trusted and which one is untrusted?

  23. What is virtual constructors/destructors?

  24. Is there an equivalent of exit() for quitting a C# .NET application?

  25. Does mentioning the array name gives the base address in all the integers?

  26. How to perform addition,subtraction of 2 numbers without using addition and subtraction operators?

  27. Define structural language and procedural language?

  28. What is the type of the variable b in the following declaration?#define FLOATPTR float*FLOATPTR a,b;a) float b) float pointer c) int d) int pointer

  29. When should we not use Quick sort as a sorting technique?

  30. How do you access the static member of a class?

Companies that ask C questions