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 the difference between malloc () and new?
What is the difference between a private assembly and a shared assembly?
What are the boolean data types in c#?
What is list array in c#?
What is dictionary collection in c#?
What is dll in c#?
What is exe in c#?
What is the meaning of int parse in c#?
Explain the 3 types of properties in c# with an example?
What are the fundamental principles of oo programming?
What are data types examples?
Why do we need indexer in c#?
How does dependency injection work c#?
Is type nullable c#?
What is an expression in c#?