C Programming Questions Answers - Chapter 1

  • 36. Which is invalid name of identifier

    1. world
    2. addition23
    3. test_name
    4. factorial
    Answer :

    Option

  • 37. printf() belongs to which library of c

    1. stdlib.h
    2. stdio.h
    3. stdout.h
    4. stdoutput.h
    Answer :

    Option B

  • 38. Difference between calloc() and malloc()

    1. calloc() takes a single argument while malloc() needs two arguments
    2. malloc() takes a single argument while calloc() needs two arguments
    3. malloc() initializes the allocated memory to ZERO
    4. calloc() initializes the allocated memory to NULL
    Answer :

    Option B

  • 39. What is the purpose of getc()

    1. read a character from STDIN
    2. read a character from a file
    3. read all file
    4. read file random
    Answer :

    Option B

  • 40. Any type of modification on the parameter inside the function will reflect in actual variable value can be related to

    1. call by value
    2. call by reference
    3. both of above
    4. none of above
    Answer :

    Option B

Please Like Us