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
How do I get rid of microsoft visual c++ runtime library error?
What is difference between c++ and vc++?
What is the use of microsoft visual c++ 2015 redistributable?
What is vc++ programming?
Is it ok to uninstall microsoft visual c++?
What is the difference between turbo c++ and visual c++?
What is a copy constructor? What is the need for it?
What is visual c++ runtime error?
difference between assert and verify.
Explain some of commonly used methods provided by iunknown.
What is difference between c++ and visual c++?
What is microsoft visual c++ 2015 redistributable?
How do I reinstall visual c++ on windows 10?
Does visual c++ 2017 replace 2015?
How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?