i am learning "c".i am in the beginning level. i want more explanations about arrays. in arrays what does the garbage means? how it affect the program.
gowswan 0 Newbie Poster
Recommended Answers
Jump to Postan array is essentially a variable which can store a number of values, all stored one after another in memory and all having a certain index;
egint numbers[10]; // array of 10 integers, unitialised int morenumbers[3] = { 27, 4, 1 }; // array of 3 …
Jump to Postits a pointer no need to init the number of chars, saves a lot of work.
All 7 Replies
jwenting 1,905 duckman Team Colleague
1o0oBhP 4 Posting Pro in Training
Dave Sinkula 2,398 long time no c Team Colleague
chound 1 Junior Poster
jwenting 1,905 duckman Team Colleague
anastacia 0 Junior Poster
1o0oBhP 4 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.