C Programming Questions Answers - Chapter 1

  • 1. Adding to a pointer that points to an array will

    1. Cause an error
    2. Increase the value of the element that the pointer is pointing to
    3. Cause the pointer to point to the next element in the array
    4. None of above
    Answer :

    Option C

  • 2. Disadvantage of array in C is

    1. We can easily access each element
    2. It is necessary to declare too many variables
    3. It can store only one similar type of data
    4. None of above
    Answer :

    Option C

  • 3. The first expression in a for loop is

    1. Step value of loop
    2. Value of the counter variable
    3. Any of above
    4. None of above
    Answer :

    Option B

  • 4. If (*p) and **p is same

    1. No
    2. Yes
    Answer :

    Option A

  • 5. Can getch() be used to echo the input

    1. Yes
    2. No
    Answer :

    Option B

  • 6. calloc() belongs to which library

    1. stdlib.h
    2. malloc.h
    3. calloc.h
    4. None of above
    Answer :

    Option A

  • 7. Continue statement used for

    1. To continue to the next line of code
    2. To stop the current iteration and begin the next iteration from the beginning
    3. To handle run time error
    4. None of above
    Answer :

    Option B

Please Like Us