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

Top 5 Contributors of the Month
Easy Web
Imran Ghani

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#
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

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

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:


Pankaj Gupta

Indian Search Engine Optimization Forum

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

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