C Programming Questions Answers - Chapter 1
-
1. 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 :
Option C
-
2. Disadvantage of array in C is
- We can easily access each element
- It is necessary to declare too many variables
- It can store only one similar type of data
- None of above
Answer :
Option C
-
3. The first expression in a for loop is
- Step value of loop
- Value of the counter variable
- Any of above
- None of above
Answer :
Option B
-
4. If (*p) and **p is same
- No
- Yes
Answer :
Option A
-
5. Can getch() be used to echo the input
- Yes
- No
Answer :
Option B
-
6. calloc() belongs to which library
- stdlib.h
- malloc.h
- calloc.h
- None of above
Answer :
Option A
-
7. Continue statement used for
- To continue to the next line of code
- To stop the current iteration and begin the next iteration from the beginning
- To handle run time error
- None of above
Answer :
Option B