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...

Write an expression which satisfies the following statements:
(i) Creates an object of type q
(ii) If m is null, returns n, otherwise returns m
(iii) If x and y are string types, it concatenates x and y

Answer Posted / sam

1)q objQ = new q();
2)string result = m??n;
3) if((typeof(string) == x.GetType()) && (typeof(string) == y.GetType() )
{
String.Concat(x,y);
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the adv of using System.Text.StringBuilder over System.String?

979


Is array thread safe c#?

873


What is a Assembly?

955


What does question mark mean in c#?

993


What is an assembly in .net?

996


Constructor to an arbitrary base constructor?

987


What is the difference between a variable and a literal?

1063


What is the value which is accepted by all data types ?

1000


What is lazy class in c#?

872


how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com

1917


What is datacontract in c#?

895


Why is aws serverless?

886


How do I declare a pure virtual function in c#?

996


Which control cannot be placed in mdi?

986


What is different between Boxing and Unboxing?

1020