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 splitter window in vc++?

1111


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

1011


What is microsoft visual c++ 2015 redistributable?

1132


Can I uninstall visual c++?

1039


How can we use cmutex?

974


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

1016


What is microsoft visual c++ used for?

1026


How you build a project using Developer Studio?

2287


In which Way invoke context-sensitive help inside the editor?

2222


What is iunknown?

991


What is microsoft visual c++ 2013 redistributable?

1076


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

1043


How do I install microsoft visual c++ 2015?

1006


What is vc++ programming?

1112


Can I delete old microsoft visual c++?

978