C Programming Questions Answers - Chapter 1
-
29. printf() belongs to which library of c
- stdlib.h
- stdio.h
- stdout.h
- stdoutput.h
Answer And Explanation
Answer: Option B
Explanation:
-
30. A variable in c
- must have a valid datatype
- can't have a name same as keyword
- must have a name starting with a character
- All of above
Answer And Explanation
Answer: Option D
Explanation:
-
31. What is correct order of precedence in C
- Addition, Division, Modulus
- Addition, Modulus, Division
- Multiplication, Substration, Modulus
- Modulus, Multiplication, Substration
Answer And Explanation
Answer: Option D
Explanation:
-
32. What is true about fputs function
- write to a file
- takes two parameters
- requires a file pointer
- all of above
Answer And Explanation
Answer: Option D
Explanation:
-
33. Adding to a pointer that points to an array will
- Cause an error
- Increase the value of the element that the pointer is pointing to
- Cause the pointer to point to the next element in the array
- None of above
Answer And Explanation
Answer: Option C
Explanation:
-
34. Which is invalid name of identifier
- world
- addition23
- test_name
- factorial
Answer And Explanation
Answer: Option C
Explanation:
-
35. What is dangling pointer in c
- if pointer is pointing to a memory location from where variable has been deleted
- if pointer is assigned to more than one variable
- if pointer is not defined properly
- none of above
Answer And Explanation
Answer: Option A
Explanation: