5 years ago in C Basic Concepts

Is it true that a global variable may have several declarations, but only one definition?

[A] Yes
[B] No
Loading...
Next Question

Overall Stats

Attempted 121
Correct 33
Incorrect 37
Viewed 51

Answers

Guest
Guest
Deep
Deep - 1 month ago

Deep from Kolkata, India is saying Yes is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying No is correct answer

Sidharth kashyap
Sidharth kashyap - 6 months ago

Sidharth kashyap from Patna, India is saying Yes is correct answer

R.K YouTube channel
R.K YouTube channel - 8 months ago

R.K YouTube channel from Bhubaneswar, India is saying Yes is correct answer

Rajeswari Raji
Rajeswari Raji - 8 months ago

Rajeswari Raji from Hyderabad, India is saying Yes is correct answer

Related Questions

In the following program where is the variable a getting defined and where it is getting declared? #include int main() { extern int a; printf("%d\n", a); return 0; } int a=20;

  • [A] extern int a is declaration, int a = 20 is the definition
  • [B] int a = 20 is declaration, extern int a is the definition
  • [C] int a = 20 is definition, a is not defined
  • [D] a is declared, a is not defined

By default a real number is treated as a

  • [A] float
  • [B] double
  • [C] long double
  • [D] far double

When we mention the prototype of a function?

  • [A] Defining
  • [B] Declaring
  • [C] Prototyping
  • [D] Calling