C Programming Questions Answers - Chapter 1
-
8. Difference between calloc() and malloc()
- calloc() takes a single argument while malloc() needs two arguments
- malloc() takes a single argument while calloc() needs two arguments
- malloc() initializes the allocated memory to ZERO
- calloc() initializes the allocated memory to NULL
Answer And Explanation
Answer: Option B
-
10. calloc() belongs to which library
- stdlib.h
- malloc.h
- calloc.h
- None of above
Answer And Explanation
Answer: Option A
-
12. Which of the following below is/are valid C keywords
- integer
- int
- null
- none of above
Answer And Explanation
Answer: Option B
-
14. What is use of \r in c
- used to insert a vertical tab
- used to insert a tab
- places cursor at the end of line
- places cursor at the start of line
Answer And Explanation
Answer: Option D