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 the extension of master page in asp.net?
What combination of methods are used to improve the speed of the fill() method of the DataAdapter? a) BeginFillData() and EndFillData() b) StartFillData() and EndFillData() c) BeginLoadData() and EndLoadData() d) StartLoadData() and EndLoadData()
2 Answers Syntax Softtech, winfoware,
Can viewstate be accessed in another page?
Why do we need master page in asp.net?
What is anonymous authentication?
Is it possible to add aspx.vb file in to C# Web Project? If so how can i use the vb file in the C# Web project?
.net allows which inheritence
6 Answers AG Technologies, Samcomm,
difference between Trace and Debug ?
2 Answers Accenture, HCL, Patni,
Can you dynamically assign a Master Page?
How many types of file extensions for razor views in ASP.Net MVC?
what are the State management and Its Uses
What are the different types of caching ?
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)