•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 427,499 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,456 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 1959 | Replies: 3
![]() |
•
•
Join Date: Nov 2006
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
I am still struggling with understanding the creation of objects.
For example.
int[] x = {4,5,6};
int[] y = new int[x.Length];
Why is it that for the first array, we can initialize it without the use of the new keyword yet in the second line, we need the new keyword?
Whats the difference?
Thanks so much.
For example.
int[] x = {4,5,6};
int[] y = new int[x.Length];
Why is it that for the first array, we can initialize it without the use of the new keyword yet in the second line, we need the new keyword?
Whats the difference?
Thanks so much.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Output problems (C++)
- Removing characters from a string (C)
- Array Values not found in Methods (Java)
- i need help for 2-D array creation (C)
- Safe Array (C++)
Other Threads in the C# Forum
- Previous Thread: Newbee Q: How to get the parent directory of a File
- Next Thread: How to click links on the backgroun



Linear Mode