<AptiCode/>

The ultimate platform for developers to practice, compete, and grow. Join our community of passionate coders today.

TwitterLinkedIn

Platform

ProblemsCompilerAptitude TestsContests

Company

About UsContactRewardsContribute

Legal

Terms of ServicePrivacy PolicyShipping PolicyRefund Policy

© 2025 AptiCode. All rights reserved.

Made withfor developers

topic/Structures

Question NoTitleTypeMarks
668.The space required for structure variables is allocated on stack.
MCQ
5
669.Creating empty structures is allowed in C#.NET.
MCQ
5
670.Which of the following will be the correct output for the C#.NET program given below?namespace IndiabixConsoleApplication { struct Sample { public int i; } class MyProgram { static void Main() { Sample x = new Sample(); x.i = 10; fun(x); Console.Write(x.i + " "); } static void fun(Sample y) { y.i = 20; Console.Write(y.i + " "); } } }
MCQ
5
671.Which of the following is the correct way of setting values into the structure variable e defined below?struct Emp { public String name; public int age; public Single sal; } Emp e = new Emp();
MCQ
5
672.Which of the following is the correct way to define a variable of the typestruct Empdeclared below?struct Emp { private String name; private int age; private Single sal; }Emp e(); e = new Emp();Emp e = new Emp;Emp e; e = new Emp;Emp e = new Emp();Emp e;
MCQ
5