Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between turbo c++ and visual c++?

1029


How do I install microsoft visual c++ 2015?

1014


What is microsoft visual c++ 2015 redistributable?

1137


What is a copy constructor? What is the need for it?

1018


Is microsoft visual c++ important?

1076


Is microsoft visual c++ a virus?

1185


Explain the important features of vc++?

1050


What is microsoft visual c++ runtime library error?

1102


Explain some of commonly used methods provided by iunknown.

917


What is iunknown? Explain some of commonly used methods provided by iunknown.

1089


Can I uninstall visual c++ 2005?

993


how to declare and populate an array of checkBoxes

1138


Do you need microsoft visual c++?

1084


What is microsoft visual c++ 2008 redistributable?

1116


Do I need microsoft visual c++ 2005 redistributable on my computer?

1155