c

Interview Questions and Answers

C

Question:
What is the difference between printf() and sprintf() ?
Answer:

sprintf() writes data to the character array whereas printf(...) writes data to the standard output device.

--- >>>

C - Questions
1. What is prototype of printf function?
Answer
2. What is difference between declaration and definition?
Answer
3. What is function recursion?
Answer
4. What is far pointer?
Answer
5. What is the meaning of multilevel pointers in c?
Answer
6. What is huge pointer in c?
Answer
7. Do you know, what is the meaning and use of static keyword in c?
Answer
8. Difference between TSR and TSO program
Answer
9. Describe turbo c compiler?
Answer
10. Differentiate between a for loop and a while loop? What are it uses?
Answer
11. What is storage class? What are the different storage classes in C?
Answer
12. What are the uses of a pointer?
Answer
13. What are enumerations?
Answer
14. What is static memory allocation?
Answer
15. What is a function?
Answer
16. Difference between formal argument and actual argument?
Answer
17. What are C identifiers?
Answer
18. What are the facilities provided by preprocessor?
Answer
19. What do the functions atoi(), itoa() and gcvt() do?
Answer
20. What is a file?
Answer
21. Advantages of a macro over a function?
Answer
22. Which bit wise operator is suitable for turning off a particular bit in a number?
Answer
23. Does there exist any other function which can be used to convert an integer or a float to a string?
Answer
24. Why does malloc(0) return valid memory address ? What's the use?
Answer
25. Difference between const char* p and char const* p
Answer
26. What is the quickest sorting method to use?
Answer
27. When should the register modifier be used?
Answer
28. How can you determine the size of an allocated portion of memory?
Answer
29. Why n++ executes faster than n+1 ?
Answer
30. Why doesn't the following statement work?
Answer
31. What is the purpose of main( ) function ?
Answer
32. What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
Answer
33. Predict the output or error(s) for the following programmes:
Answer
34. main()
Answer
35. main()
Answer
36. main()
Answer
37. main()
Answer
38. #include
Answer
39. What is dangling pointer in c?
Answer
40. What is the use of typedef?
Answer
41. What is a pointer?
Answer
42. What are the advantages of using Unions?
Answer
43. What are segment and offset addresses?
Answer
44. What is the difference between %d and %*d in c language?
Answer
45. When is a switch statement better than multiple if statements?
Answer
46. Do you know pragma directives in c?
Answer
47. Predict the output or error
Answer
48. Predict the output or error
Answer
49. Predict the output or error
Answer
50. Predict the output or error
Answer
General Knowledge Quiz
3001 Bizarre Facts
Dictionary
Elementary English Grammar Test
Standard English Grammar Test
Advanced English Grammar Test
Daily English Quiz
English Test
Grammar Examination
ESL / EFL Test
Grammar Test
Antonyms
Synonyms
Homonyms
Vocabulary Examination
Word Analogy
Vocabulary Flashcards
Idioms
Idioms Quiz
Quantitative Aptitude Test
iQ Quiz Game
Verbal Reasoning Quiz - Mind Game
English Question Answer
Vocabulary Game 1
Vocabulary Game 2
Scramble Word Game
Common Mistakes
Confusing Words
Basic English Usage
English Grammar
Prepositions
English Phrases
Learn English
Word Game
Interview Questions and Answers
Educational Quiz Games