1.What is C#? Ans: C# is a modern, general-purpose, object-oriented programming language developed by Microsoft. C# is designed for Common Language Infrastructure (CLI), which consists of the executable code and runtime environment that allows use of various high-level languages on different computer platforms and architectures. 2. What is Jagged Array in C#? Ans: A Jagged array is an array of arrays. You can initialize a jagged array as − int [][] scores = new int [ 2 ][]{ new int []{ 92 , 93 , 94 }, new int []{ 85 , 66 , 87 , 88 }}; Where, scores is an array of two arrays of integers - scores[0] is an array of 3 integers and scores[1] is an array of 4 integers. 3.In how many ways you can pass parameters to a method? Ans: There are three ways that parameters can be passed to a method − Value parameters − This method copies the actual value of an argument into the formal parameter of the function. In this case, changes made to the parameter inside the funct...
Comments
Post a Comment