How to declare more than one variable on a single line?

Answers were Sorted based on User's Feedback



How to declare more than one variable on a single line?..

Answer / 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

How to declare more than one variable on a single line?..

Answer / guest

for giving a comma operator

Is This Answer Correct ?    4 Yes 0 No

How to declare more than one variable on a single line?..

Answer / suganthi

for giving a comma operator

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More VC++ AllOther Interview Questions

What is microsoft visual c++ 2005 redistributable?

0 Answers  


What is a wizard?

0 Answers  


What is the return value when the InsertItem function fails?

2 Answers  


What is vcruntime?

0 Answers  


Does visual c++ 2017 replace 2015?

0 Answers  






What are some differences between a form view and a dialog box?

2 Answers   DS Group, Manipal Ecommerce,


Explain the significance of initapplication() in vc++.

0 Answers  


How do I reinstall visual c++ on windows 10?

0 Answers  


What is the default label used for in a switch statement?

2 Answers  


What is the use of DDV and DDX routines ?

4 Answers   TCS,


Can I uninstall visual c++?

0 Answers  


What is visual c++ used for?

0 Answers  


Categories