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

2. What among following is true about stack

  • stack cannot reuse its memory
  • all elements are of different datatypes
  • all operation done at one end
  • none of above

3. Out of following program :
float x = 10.7;
int i;

i = (int) x;
print i;

  • null
  • error
  • 10
  • garbage value

4. Which is invalid name of identifier

  • world
  • addition23
  • test_name
  • factorial

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 10 years ago

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