How to declare more than one variable on a single line?
Answer Posted / n
To declare multiple variables of same datatype use comma.
eg. int n1, n2, n3;
To declare variables of different datatype on a single line
use semicolon.
eg. int n; char ch; float f;
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
Is it safe to uninstall microsoft visual c++ 2008 redistributable?
Is visual c++ the same as c++?
Explain the important features of vc++?
How do I install microsoft visual c++ 2015?
Do I need microsoft visual c++?
What is microsoft visual c++ 2013 redistributable?
What is microsoft visual c++ runtime library error?
What is a microsoft visual c++ 2008 redistributable?
How do I reinstall microsoft visual c++?
What is iunknown? Explain some of commonly used methods provided by iunknown.
Do I need microsoft visual c++ 2005 redistributable on my computer?
What is visual c++ runtime?
What is microsoft visual c++ 2005 redistributable?
How do I get rid of microsoft visual c++ runtime library error?
What is microsoft visual c++ 2015 redistributable?