C interview questions – page 5

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

Advertisement
  1. difference between memcpy and strcpy

  2. What's the best way to declare and define global variables?

  3. what is the difference between and "stdio.h"

  4. which will be first in c compiling ,linking or compiling ,debugging.

  5. Write a program in C to convert date displayed in gregorian to julian date

  6. WAP – represent a char in binary format

  7. Give a fast way to multiply a number by 7

  8. How the C program can be compiled?

  9. What are the preprocessors?

  10. what are the various memory handling mechanisms in C ?

  11. what is a function pointer and how all to declare ,define and implement it ???

  12. How to implement variable argument functions ?

  13. Advertisement
  14. What are advantages and disadvantages of recursive calling ?

  15. What is an anonymous union and where to apply that ?

  16. What is structure packing ?

  17. How to implement call back functions ?

  18. How the processor registers can be used in C ?

  19. What is an volatile variable?

  20. How to access or modify the const variable in c ?

  21. What is structure padding ?

  22. What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++?

  23. What is your strongest programming language (Java, ASP, C, C++, VB, HTML,C#, etc.)?

  24. When is the last time you coded in C/C++? What is the most lines of original C/C++ code you have personally written in one project? How confident are you in your ability to write C or C++ without a reference?

  25. How do you test your code?

  26. Advertisement
  27. Given a simple program designed to take inputs of integers from 1-1000 and to output the factorial value of that number, how would you test this program? You do not have access to the code. Please be as specific as possible.

  28. Definition of class?

  29. const char * char * const What is the differnce between the above two?

  30. 1)#include int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i

  31. what is pulse code modulation?

  32. wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster

Advertisement