Consider the following pieces of C# code:
a. interface I1 {/*......*/}
interface I2 {/*......*/}
struct Point : I1,I2 {/* ..... */}
b. struct Book{
int bookId;
struct Book b;
}
c. using M=Mystruct;
struct MyStruct{
int id;
}
class MyClass{
static void Main(string[] args){
M m = new M();
}
}
d. struct Sample{
Sample ref x;
}
Which of the above are correct?
Choose one of the options below.
a, c and d are right
a only right
a and c are right
d only wrong
None of the listed options
Answer Posted / b2balaji
shall u give reason for this answer?
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is pure abstract class in c#?
what are nullable types in c#
What is string concatenation?
Is c# and c sharp same?
How to find methods of a assembly file (not using ILDASM)?
Is learning c# hard?
Can we set image Source dynamically using C# in WPF application?
What is the difference between parse and tryparse in c#?
What are properties in C#?
What are the boolean data types in c#?
In dynamic link library, which api is used for load library?
Write a sample code to write the contents to text file in c#?
What are the different types of literals in c#?
What is JIT (just in time)? how it works?
How do you convert byte array to hexadecimal string, and vice versa?