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 / niloy roy
Only a is the right
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to use delegates with events?
What is a linq in c#?
What is the use of functional interface?
Is static class thread safe in c#?
Can firstordefault return null?
What is reference types in c#?
How to implement delegates in c#.net
Why do we use threads in c#?
Can a class have static constructor?
How do I declare a pure virtual function in c#?
Can we inherit private class in c#?
Perfect Example Of While And Do-While Loop In C#.Net ?
Explain about multithreading?
What is asp net c#?
What is verbatim string?