D
Dhruv Ahuja
Flash Gordon said:On 1 Nov 2004 10:45:38 -0800
No, this will only initialise the first element, s[0] to a zero. The
remaining 29 will have a 'garbage' uninitialised value. To set all an
array's elements to zero, you should do this: char s[30] = { 0 );
Please quote enough of the text you are replying to to give some
context. Without that no one has the foggiest idea what you are talking
about. However, I vaguely recall this thread and if it is what I think
it is you are completely wrong as examining the other posts in the
thread will show.
My apologies to the group for this. Thank you for pointing out Mr. Gordon.