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 need of client side and server side validation ?
What event fired during, when datagrid click?
How you will handle session when deploying application in more than a server? Describe session handling in a webfarm, how does it work and what are the limits?
What is the default Orientation property in a Menu control?
0 Answers Sans Pareil IT Services,
How does VB.NET/C# achieve polymorphism?
Is it possible for me to change my aspx file extension to some other name?
How to prepare culture-specific formatting in .net.
5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?
Explain the difference between asp.net mvc and asp.net webforms
Is LINQ performance wise better or using sqlcommand?
If cookies is disabled in client browser will session work ?
We have 2 sites in which one site allows the user with out asking credentials and second one ask for credentials through a log page. What might be the configurations settings for both sites? We can use IIS and web.config files together.