Basic Data Structures – 2

Basic Data Structures » Exercise – 1

2. A global variable is a variable :

(a) declared in the main ( ) function.
(b) declared in any function other than the main ( ) function.
(c) declared outside the body of every function.
(d) declared any where in the C program.

Answer
Answer : (c)

Explanation
Explanation : No answer description available for this question. Let us discuss.
General Knowledge Books

Related Posts

  • Basic Data Structures – 1Basic Data Structures » Exercise - 1 1. main ( ) is an example of : (a) header (b) statement (c) library function (d) user defined function 
    Tags: basic, data, structures, function, exercise, main, computer, science
  • Basic Data Structures – 5Basic Data Structures » Exercise - 15. What is the output of the following statement : printf (“%-3d”,12345); (A) 1 2 3 (B) -1 2 3 (C) 1 2 3 4 5 (D) 12  
    Tags: basic, data, structures, exercise, computer, science
  • Basic Data Structures – 9Basic Data Structures » Exercise - 19. A single character input from the keyboard can be obtained by using the function. (a) printf ( ) (b) scanf ( ) (c) putchar ( ) (d) getchar ( )
    Tags: basic, data, structures, exercise, function, computer, science
  • Basic Data Structures – 4Basic Data Structures » Exercise - 14. The first digit of a decimal constant must be : (a) a zero (b) a non zero number (c) a negative number (d) an integer
    Tags: basic, data, structures, exercise, computer, science
  • Basic Data Structures – 7Basic Data Structures » Exercise - 17. Literal means : (a) a string (b) a string constant (c) a character (d) an alphabet
    Tags: basic, data, structures, exercise, computer, science

LEAVE A REPLY

Please enter your comment!
Please enter your name here