How to transpose rows into columns and columns into rows in
a multi-dimensional array ?
Answer Posted / 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 |
Post New Answer View All Answers
What is a reflection?
How many types of cookies are available in asp?
What is authentication in asp.net?
What are the components of ado.net?
What are tuples?
What is asynchronous call?
how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool
What is the size of Get method and how much data it can store?
What is Model-View-View Model?
Explain difference between friend and protected friend?
How can I create master page in asp net?
Where are session variables stored?
How many types of cache are there?
Explain the purpose of storyboard.targetproperty.
What is the default Orientation property in a Menu control?