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. 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

2. 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

3. We can insert pre written code in a C program by using

  • #read
  • #get
  • #include
  • #put

4. What is use of \r in c

  • used to insert a vertical tab
  • used to insert a tab
  • places cursor at the end of line
  • places cursor at the start of line

5. Break statement is used for

  • Quit a program
  • Quit the current iteration
  • Both of above
  • None of above
Read more from - C Programming Questions Answers - Chapter 1
Post a comment

  • anand 5 years ago

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