.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

doubt in Array declaration

Posted By: pavani     Posted Date: July 20, 2009    Points:2   Category :C#
Hi
i want to declare an array without specifying the size how is it possible
int []a; doestnot work
am using new key word
please help its urgent

Responses
Author: Syed Shakeer Hussain             
Posted Date: July 20, 2009     Points: 5   

Hi
use string array,you cannot declare array without specifying the size in int data type.
use String str[]=new String['6','66','555'];

Author: PankajGupta             
Posted Date: July 21, 2009     Points: 5   

Hope this Link will help you to understand it more clearly:

http://en.csharp-online.net/All_about_Arrays_in_CSharp%E2%80%94Arrays

Pankaj Gupta

Indian Search Engine Optimization Forum
http://forum.wedost.com


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend