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 |
I have to send data throug querystring from one page to another. But it should not be displayed in URL. How it is possible?
What does asp in asp.net stand for?
What is Hidden Fields in Asp.Net
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
How would you get ASP.NET running in Apache web servers - why would you even do this?
Can One website be made using two different languages like c#,vb.net etc......
Give me one example of Web API Routing?
What are Caching techniques in .NET
State differences between MVC and WebAPI
what is the auto option in XML ?
what is clr .
How does the regular expression validator work? What are two situations when you might want to use one?
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)