adplus-dvertising
frame-decoration

Question

What is the difference between a declaration and a definition of a variable?

a.

Both can occur multiple times, but a declaration must occur first

b.

A definition occurs once, but a declaration may occur many times

c.

Both can occur multiple times, but a definition must occur first

d.

A declaration occurs once, but a definition may occur many times

Posted under C Programming

Answer: (d).A declaration occurs once, but a definition may occur many times

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the difference between a declaration and a definition of a variable?