Home » Interview » Technology

How variable declaration in c++ differs that in c?

Correct Answer: C requires all the variables to be declared at the beginning of a scope but in c++ we can declare variables anywhere in the scope This makes the programmer easier to understand because the variables are declared in the context of their use

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion