How to transpose rows into columns and columns into rows in
a multi-dimensional array ?
Answer / kalpana
int [,]array=new int[2,2] {{1,2},{3,4}};
transpose of the array is
for(int i=0;i<2;i++)
{
for(int j=0;j<2;j++)
{
Console.Write("{0} ",a[j,i]);
}
}
o/p : 1 3
2 4
Is This Answer Correct ? | 1 Yes | 1 No |
How do I publish my asp.net application to my isp's web server?
What are the asp.net security controls?
Explain asp.net mvc request life cycle? : asp.net mvc
Which namespace do the classes, allowing you to support COM functionality, are located?
What is the advantage of using Windows authentication in a Web application?
What is the difference between the get method () and post method ()?
what are the oops concepts are used in your project?
1 Answers AppShark, IBM, Kotak,
What is the difference between abstract class vs interface? Can give me the real time examples?
Difference between application and session ?
about view state and how validation controls will be executed on client and server
Diff B/W user control and server control
How to check null values in dataset ?