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 splitter window in vc++?
What is a copy constructor? What is the need for it?
What is microsoft visual c++ 2015 redistributable?
Can I uninstall visual c++?
How can we use cmutex?
What is the difference between turbo c++ and visual c++?
What is microsoft visual c++ used for?
How you build a project using Developer Studio?
In which Way invoke context-sensitive help inside the editor?
What is iunknown?
What is microsoft visual c++ 2013 redistributable?
Do I need microsoft visual c++ on my computer?
How do I install microsoft visual c++ 2015?
What is vc++ programming?
Can I delete old microsoft visual c++?