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 |
how can i split sting in textbox in windows application using c# .net
Code for Reading and writing from a file in c#?
How to Create Files by Using the FileInfo Class?
How to find No of classes,Packages,No of Methods per Classes and Depth of Inheritance for selecting source code in windows form application using c# .net? (Source code is input Program. It may be Java or .net) Please help me..) Thanks..)
IS Array list is generic or non generic
program to check if a number is "perfect number".
Automatically Hyperlink URLs and E-Mail Addresses in ASP.NET Pages with C#
program to reverse the order of words in a string.
Code for Reading and writing from a file?
how to get the table names via c sharp and column names also?
. Write a program to print the following outputs using for loops $ $ $ $ $ $ $ $ $ $ $ $ $ $ $
Can you declare an array of mixed Types?