Monday, 8 August 2011

c interview questions


  1. How can I find the day of the week given the date?Why doesn’t C have nested functions?
  2. What is the most efficient way to count the number of bits which are set in a value?
  3. How can I convert integers to binary or hexadecimal?
  4. How can I call a function, given its name as a string?
  5. How do I access command-line arguments?
  6. How can I return multiple values from a function?
  7. How can I invoke another program from within a C program?
  8. How can I access memory located at a certain address?
  9. How can I allocate arrays or structures bigger than 64K?
  10. How can I find out how much memory is available?
  11. How can I read a directory in a C program?
  12. How can I increase the allowable number of simultaneously open files?
  13. What’s wrong with the call fopen(”c:\newdir\file.dat”, “r”)?
for more interview questions on c visit www.a2zinterviewquestions.in

No comments:

Post a Comment