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 |
What is server objects in asp.net?
Describe a bubbled event and how it is used ?
What is the question mark in a url?
Why session is necessary in web application?
main difference between asp.net2.0,asp.net1.1,asp.net1.0
15 Answers Inflexion, Infosys, iSoft, Microsoft, Prakruthi,
What is the difference between Classic ASP and ASP.Net?
What is smpte vc-1?
What object is used to encapsulate a rowset? a) DataSet b) DataAdapter c) DataRowSet d) DataTable
What are asp.net web forms?
I have a method written in WebForm (means .aspx page) & now I want to call this method in WebUserControl (means .ascx page) what should I have to do?
What is a 401 redirect?
How cross page posting is done in Asp.net 2.0?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)