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 layout mode is the default when a new Web Form is created? a) GridBagLayout b) GridLayout c) FlowLayout d) FormLayout
how to stop cookie in particular page using asp.net
Which method do you use to kill explicitly a users session?
What are the server control tags in asp.net.?
what is the requirement that .Net web services can access the java application?
What is loop in asp.net?
What is the difference between a cookie and a pixel?
What is difference Data List and Data Repeater Control ?
What is marshalling ? Is it a part of asp.net ?
How to Open any web page by clicking any Any ASPControl like (Checkbox,radio button or Button) without calling its event and without going to Siverside code?
What is webresource axd?
Which template must you provide, in order to display data in a Repeater control?
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)