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 |
Is There any Third party tools are using in .Net Technologies? Can u Explain?
What is the lifespan for items stored in ViewState?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
Any disadvantages in Dataset and in reflection ?
0 Answers DELL, Digital GlobalSoft,
What are the major built-in objects in ASP.NET?
where should write the connection string Show that it will apply whole pages in the website
Types of authentications in ASP.NET ?
9 Answers Accenture, Roland, Shriram,
What is diff. Between abstract class and an interface?
What is difference between session and cookies?
Explain the difference between Web Garden and Web Farm?
0 Answers Sans Pareil IT Services,
What is deference between asp.net, vb.net, c# & j#
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
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)