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
Is clr a compiler?
Does the variables of a private class-level inherited?
Can we have static indexer in c#?
What does m mean in decimal c#?
What is difference between const and static in c#?
Explain About .NET Framework
What are partial classes and use of partial classes?
What is ildasm.exe used for?
What is integer c#?
What is byte c#?
How do I run managed code in a process?
Is c# slower than java?
What is entity framework in c#?
Define a jagged array in c#?
Describe the ways of cleaning up objects in c#.