Question Detail

Due to variable scope in c

  • Variables created in a function cannot be used another function
  • Variables created in a function can be used in another function
  • Variables created in a function can only be used in the main function
  • None of above
Similar Questions :

1. printf() belongs to which library of c

  • stdlib.h
  • stdio.h
  • stdout.h
  • stdoutput.h

2. What is true about fputs function

  • write to a file
  • takes two parameters
  • requires a file pointer
  • all of above

3. rand() function returns

  • float value
  • integer value
  • any type
  • none of above

4. Which operator in c can't be overloaded

  • %
  • +
  • ::
  • -

5. 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
Read more from - C Programming Questions Answers - Chapter 1