Interview questions

C interview questions – page 41

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

  1. Why don't we add null pointer at the end of array of integer? How can we calculate the length of array of integer?

  2. What is pointers and its uses?

  3. How to print the names of employees or students in alphabetical order using C programming?

  4. Explain about polymorphism?

  5. What is a method?

  6. Explain about overriding polymorphism?

  7. How would you obtain the current time and difference between two times?

  8. C is a structural or highlevel or middle level language which one is correct answer

  9. What is a pre-requisite for connection pooling?

  10. I was trying to use an "out int" parameter in one of my functions. How should I declare the variable that I am passing to it?

  11. What is the difference between // comments, /* */ comments and /// comments?

  12. #define SQR(x) x * xmain(){printf("%d", 225/SQR(15));}

  13. When does the compiler not implicitly generate the address of the first element of an array?

  14. What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

  15. What is difference between function and procedure and how a function can be converted to procedure?

  16. Main(){char c;int i = 456;clrscr();c = i;printf("%d", c);}

  17. If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?

  18. How should i rate on the basis of the basis of the scenario the insertion sort , bubble sort , Quick Sort?

  19. How to break cycle in circular single link list?

  20. What is class? What is object? Describe these 2 with example.

  21. Nesting of loops in C may continue upto how many levels?

  22. Does C# support parameterized properties?

  23. What is a function and built-in function?

  24. #include <stdio.h>int main(){int a=3, b = 5;printf(&a["Ya!Hello! how is this? %s"], &b["junk/super"]);printf(&a["WHAT%c%c%c%c%c%c !"], 1["this"],2["beauty"],0["tool"],0["is"],3["sensitive"],4["CCCCCC"]);return 0;}

  25. From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

  26. What is friend function?

  27. How to find the difference between dates.(Year, Month, Day)?

  28. What is an lvalue?

  29. Does C# support C type macros?

  30. Main(){char *p = "hello world";p[0] = 'H';printf("%s", p);}

Companies that ask C questions