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
What is the difference between turbo c++ and visual c++?
How do I install microsoft visual c++ 2015?
What is microsoft visual c++ 2015 redistributable?
What is a copy constructor? What is the need for it?
Is microsoft visual c++ important?
Is microsoft visual c++ a virus?
Explain the important features of vc++?
What is microsoft visual c++ runtime library error?
Explain some of commonly used methods provided by iunknown.
What is iunknown? Explain some of commonly used methods provided by iunknown.
Can I uninstall visual c++ 2005?
how to declare and populate an array of checkBoxes
Do you need microsoft visual c++?
What is microsoft visual c++ 2008 redistributable?
Do I need microsoft visual c++ 2005 redistributable on my computer?