Home / MCQ Bank / Computer
Computer Classes And Objects In C Sharp Difficulty: Medium

Which of the following is the correct way to settle down values into the structure variable 'e' defined in the following C# code snippet? struct emp { public String name; public int age; public Single sal; } emp e = new emp();

Select the correct option to test your answer:

More Computer Questions

What does the following C# code imply? csharp abc; abc = new charp(); Which of these class can encapsulate an entire executing program? What will be the output of the following code? #include<iostream> using namespace std; int list[200]; void func(int n, int m = 0) { int i; if(n == 0) { for(i = 0; i < m; ++i) printf("%d ", list[i]); printf("\n"); return; } for(i = n; i > 0; --i) { if(m == 0 || i <= list[m - 1]) { list[m] = i; func(n - i, m + 1); } } } int main() { int n=3; func(n,0); return 0; } Accessibility modifiers defined in a class are? What is the primary purpose of the "ListenHTTP" processor in Apache NiFi?