Interview questions

C interview questions – page 42

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

  1. What is the difference between an object and a class?

  2. Explain the implementation phase with respect to OOP?

  3. When should a far pointer be used?

  4. How can you access the static member of a class?

  5. Can the size of an array be declared at runtime?

  6. When we access the integer and the character variables without declaring them in program?and Why?

  7. How do I use c-strings to write a c program that Removes multiple spaces between words in a paragraph?

  8. Are private class-level variables inherited?

  9. Can we call a virtual function in a constructor? give example.

  10. How can send unlimited no of arguments to a function, eg printf function can take any no of arguments

  11. What compiler was used?

  12. How to add 2 numbers without + sign?

  13. Between a long pointer and a char pointer , which one consumes more memory? explain

  14. Explain about the analysis phase?

  15. Following declarations are sameconst char *s; char const *s;

  16. What is the difference between structure and union?

  17. Define Inheritance?

  18. What are classes?

  19. What is the difference between the Debug class and Trace class?

  20. What is the purpose of main( ) function?

  21. What are the advantages and disadvantages of inheritance?

  22. Const int perplexed = 2;#define perplexed 3main(){#ifdef perplexed#undef perplexed#define perplexed 4#endifprintf("%d",perplexed);}

  23. Why we use static class

  24. Main(){int c = 5;printf("%d", main||c);}

  25. How do I make a DLL in C#?

  26. Can we print values from 1 to 100 without using for,while,do-while,if etc.?answer should be logical.

  27. State about Java and its relation to Object oriented programming?

  28. How's method overriding different from overloading?

  29. What is delegates ?

  30. Main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; }

Companies that ask C questions