plz tl me how to find length of integer array
pavan146
-1
Newbie Poster
Recommended Answers
Jump to Postint x[5];
Length is: sizeof(x)/sizeof(int);
Jump to Postusing
len = array.length( );
functionnn
Correct me if I'm wrong, but length() works for strings not integer arrays. If it does work then please demonstrate how, because I got a syntax error trying it.
Here's some code that I know works. It shows 2 ways of getting the …
All 8 Replies
wingless
0
Newbie Poster
crazyboy
-4
Junior Poster in Training
necrolin
94
Posting Whiz in Training
Skeen
0
Junior Poster in Training
Skeen
0
Junior Poster in Training
necrolin
94
Posting Whiz in Training
kri_prasad2000
-4
Newbie Poster
Skeen
0
Junior Poster 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.