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

How can we use cmutex?

0 Answers  


What is microsoft visual c++ runtime library error?

0 Answers  


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

0 Answers  


What are the two forms of the #include preprocessor directive?

1 Answers  


What is the purpose of declaring a variable as unsigned?

2 Answers  


#include<stdio.h>int(){int a,*b,**c,***d,****e; a=10;b=&a;c=&b;d=&c;e=&c;printf("a=%d b=%u c=%u d=% e=%u",a,b,c,d,e);printf ("%d%d%d\n",a,a+?*b,**c+***d+,****e);return0;}

1 Answers  


Explain the advantages of cwinthread class.

0 Answers  


How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?

0 Answers   Soft Solutions,


Is microsoft visual c++ important?

0 Answers  


Is visual c++ the same as c++?

0 Answers  


What is microsoft visual c++ 2013 redistributable?

0 Answers  


What is microsoft visual c++ 2015 redistributable package x64?

0 Answers  


Categories