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
What is the adv of using System.Text.StringBuilder over System.String?
Is array thread safe c#?
What is a Assembly?
What does question mark mean in c#?
What is an assembly in .net?
Constructor to an arbitrary base constructor?
What is the difference between a variable and a literal?
What is the value which is accepted by all data types ?
What is lazy class in c#?
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
What is datacontract in c#?
Why is aws serverless?
How do I declare a pure virtual function in c#?
Which control cannot be placed in mdi?
What is different between Boxing and Unboxing?