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?

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

Suppose multiple threads accessing a registry key at a time. In that case which synchronization object you will use?

4 Answers   Microsoft,


What is odbc in vc ++?

0 Answers  


Which steps are required to add a column to a list view?

2 Answers  


What is iunknown?

0 Answers  


Is it safe to uninstall microsoft visual c++ 2008 redistributable?

0 Answers  


What is the difference between Boxing and Unboxing in C#

1 Answers  


What is cmutex?

0 Answers  


How do I fix microsoft visual c++ 2015 setup failed?

0 Answers  


What is a glyph?

2 Answers  


Difference between getmessage, postmessage & peakmessage.

0 Answers  


How will slove problem comes wirh Hybrid Inheritance?

1 Answers   Microsoft,


What is the difference between an MLE and an SLE?

1 Answers   Infosys,


Categories