Interview questions

C interview questions – page 43

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

  1. Main(){printf("%d, %d", sizeof('c'), sizeof(100));}

  2. Void func1(int (*a)[10]){printf("Ok it works");}void func2(int a[][10]){printf("Will this work?");}main() { int a[10][10];func1(a); func2(a);}

  3. How can I access the registry from C# code?

  4. What is the heap?

  5. Explain what is an object?

  6. What are storage class in c?

  7. What optimizations does the C# compiler perform when you use the /optimize+ compiler option?

  8. Given an integer N>0,write a recursive c++ function that writes the integer 1,2,...N ?

  9. Define Data encpsulation?

  10. What is virtual class and friend class?

  11. Explain about multiple inheritance?

  12. Explain the usage of encapsulation?

  13. Write a program for n lines1 2 3 4 516 17 18 19 615 24 25 30 714 23 22 21 813 12 11 10 9

  14. What is a pointer value and address?

  15. What is the use of typedef?

  16. What is polymorphism? Explain with an example?

  17. What is public, protected, private?

  18. How is method overriding different from overloading?

  19. What is the difference between the functions memmove() and memcpy()?

  20. What are all the languages which support OOP?

  21. Explain the mechanism of composition?

  22. I want source code of series of prime numbers?

  23. Difference between realloc() and free()?

  24. How to swap the content of two variables without a temporary variable

  25. What does assert() do?

  26. How to write a program in c to print its own code?

  27. What are virtual functions?

  28. How are pointer variables initialized?

  29. Is there any sample C# code for simple threading?

  30. What is a const pointer?

Companies that ask C questions