Interview questions

C interview questions – page 57

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

  1. What are pointers in C?

  2. What is virtual destructor? Why?

  3. Why do we use Overloading, Overriding, Boxing, Unboxing, and what is the use of these ?

  4. Name the language in which the compiler of "c" in written?

  5. What is the difference between protected and protected internal?

  6. Write a c program to find biggest of 3 number withoutrelational operator?

  7. Write c program without semicolon

  8. How to call a non virtual function in the derived class by using base class pointer

  9. Explain synchronous and asynchronous in C#

  10. What is the difference between these statements obj=null and obj.dispose()

  11. Write a program that takes a 5 digit number and calculates 2 power that number and prints it

  12. How can u draw a rectangle in C

  13. How to create window program in c++.please explain.

  14. What is the default identifier of structure in C?

  15. Can we call one program(not include) from another program?

  16. Main(){ signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); }}a. 0, 0b. 0, 513c. 512, 0d. 0, -513

  17. Who invented c language?

  18. If array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.

  19. Write a program to show the workingof auto variable.

  20. Sir there is some problem with nokia5130c-2,when we aretrying to upload movies from net then there is a erroroccurred"FORMAT NOT SUPPORTED" bt its all ready in 3gpformat.please tell me what i do now?

  21. What is size of Empty Class?

  22. What is the difference between readonly and constant in c#

  23. Linked List reverese program

  24. Write a program for 7*8 = 56 ? without using * multiplyoperator ? output = 56

  25. If there are 1 to 100 Numbers in array of 101 elements.Which is the easy way to find repeated number?

  26. Can we drive a class from delegate?

  27. What is the purpose of semicolon in c?

  28. Assuming that locks are the only reason due to which deadlocks can occur in a system. What would be a foolproof method of avoiding deadlocks in the system

  29. What are reentrant code, reusable code and recursive code

  30. You have to write a program which tell about how many times it has run. ex: if you run first time it will print 1. if you run second time it will print 2. like this.

Companies that ask C questions