Can you declare an array of mixed Types?
Answer / kris
public struct FormStruct
{
public string Name ;
public string Address;
public int Phone;
}
class Program
{
static void Main(string[] args)
{
FormStruct home;
home.Name = "xyz";
home.Address= "blabla";
home.Phone= 9955511122;
}
}
| Is This Answer Correct ? | 5 Yes | 17 No |
Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.
Code for Reading and writing from a file?
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?
Write a program which has a function and that function should take 2 or 3 or any number of strings and it should return the largest common prefix of all those strings. If there is no common prefix it should return an empty string. for eg:- INPUT OUTPUT glo {glory,glorious,glod} gl {glad,glow} {calendar,phone} empty string
program to reverse the order of words in a string.
How to pass multiple rows from one gridview to another gridview after clicking the checkbox.
Can you declare an array of mixed Types?
Code for Searching for Multiple Matches with the MatchCollection Class?
how can i split sting in textbox in windows application using c# .net
how do i copy textbox contents of 1 form to another form
Write a program to count the number of characters, number of words, number of line in file.
Automatically Hyperlink URLs and E-Mail Addresses in ASP.NET Pages with C#