download Mastguru Android App

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. Break statement is used for

  • Quit a program
  • Quit the current iteration
  • Both of above
  • None of above

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

  • call by value
  • call by reference
  • both of above
  • none of above

3. Which operator in c can't be overloaded

  • %
  • +
  • ::
  • -

4. Which of the following below is/are valid C keywords

  • integer
  • int
  • null
  • none of above

5. The compiler in C ignores all text till the end of line using

  • //
  • /
  • */
  • none of above
Read more from - C Programming Questions Answers - Chapter 1
Post a comment

  • anand 10 years ago

    can you give example for variable scope in c. que no 6.