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
Why do we need events in c#?
What is a dbml?
What is the function of .IsDescendent()?
What is array formula?
Is c# and .net same?
What is the use of readkey in c#?
What is windows application in c#?
Explain the use of Mutex in C#?
Is c# the same as d flat?
What are the namespace level elements?
What is a hash table in c#?
What is a generic class?
What is icollection in c#?
What is visual c# net?
write a program to find the biggest palindrome in the given string