Interview questions

C interview questions – page 40

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

  1. Can anyone share his code which would accept a sentence, then count the number occurrence of the words excluding spaces.All is done using linked list.

  2. How to create and manage files in c#?

  3. What does the This window show in the debugger?

  4. How does one compare strings in C#?

  5. Main(){{unsigned int bit=256;printf("%d", bit);}{unsigned int bit=512;printf("%d", bit);}}

  6. What is the function of c?

  7. Write a program to insert an element in a linear array array?

  8. Between n+1 and n++ which executes faster or both take the same time to execute?

  9. If compiler for c is written in c language, which is used to complie the compiler?

  10. What does Dispose method do with the connection object?

  11. What is difference between the test effort and the test procedure?

  12. What is prototype in c++ and c?

  13. Is it possible to have a static indexer in C#?

  14. If a string variable contain "i am a good boy" then how a c program will print "boy good a am i".?

  15. Is it better to use malloc() or calloc()?

  16. Explain about inheritance?

  17. Differentiate between an internal static and external static variable?

  18. What are the advantages of pointers,give me programs containing variables and pointer variables?

  19. Explain ACID rule of thumb for transactions.

  20. Why we can not do the declaration in the class?

  21. Write a program for creating your own header file and library function?

  22. Can we use functions within a structure?

  23. How will you print % character?

  24. What are the different types of Storage classes?

  25. How do destructors and garbage collection work in C#?

  26. How can we open a image file through C program

  27. Void main(){int x=20,y=35;x= y++ + x++;y= ++y + ++x;printf("%d %d" , x,y);}/* please tell me the value of x and y at each and every moment. i dont need the answer but the explanation of the anamolus behavior of increment expression.*/

  28. What are the disadvantages of using Pointers.

  29. How do you print a string on the pointer?

  30. What are enumerations?

Companies that ask C questions