Tuesday, July 10, 2007

20 Frequently Asked C Interview Questions

20 Frequently Asked C Interview Questions

1. What is the difference between #include and #include “file”?
www.coolinterview.com/interview/1241/

2 What is hashing?
www.coolinterview.com/interview/1259/

3. What is the quickest sorting method to use?
www.coolinterview.com/interview/1263/

4. How can you determine the size of an allocated portion of memory?
www.coolinterview.com/interview/1209/

5. Why should we assign NULL to the elements (pointer) after freeing them?
www.coolinterview.com/interview/1218/

6. What is a “null pointer assignment” error? What are bus errors, memory faults, and core dumps?
www.coolinterview.com/interview/1210/

7. When should a type cast be used?
www.coolinterview.com/interview/1270/

8. What is a null pointer?
www.coolinterview.com/interview/1225/

9. How can I convert a string to a number?
www.coolinterview.com/interview/1229/

10. What is the stack?
www.coolinterview.com/interview/1214/

11. How do you print an address?
www.coolinterview.com/interview/1207/

12. What is Preprocessor?
www.coolinterview.com/interview/1250/

13. What is the heap?
www.coolinterview.com/interview/1212/

14. How do you use a pointer to a function?
www.coolinterview.com/interview/1220/

15. What is the purpose of main( ) function?
www.coolinterview.com/interview/1185/

16. What is the easiest sorting method to use?
www.coolinterview.com/interview/1264/

17. Is it better to use a macro or a function?
www.coolinterview.com/interview/1242/

18. What is a pragma?
www.coolinterview.com/interview/1235/

19. What is static memory allocation and dynamic
memory allocation?
www.coolinterview.com/interview/1178/

20. How are pointer variables initialized?
www.coolinterview.com/interview/1179/


No comments: