1. you can use calloc(); function for declaring arrays. this will clear the 
contents of the array after initialising.

Or, you can have a small for loop for making the contents '0';

K Adithyan


----- Original Message ----
From: glogic_1 <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, 30 March, 2007 12:52:58 AM
Subject: [c-prog] 2d array

hey all
when i create a 2d array there is random data within it. is there a 
way upon initialization to have all values as null or do i just have 
to loop through the array and do it that way?
thanks 
g





                
___________________________________________________________ 
All New Yahoo! Mail – Tired of unwanted email come-ons? Let our SpamGuard 
protect you. http://uk.docs.yahoo.com/nowyoucan.html

[Non-text portions of this message have been removed]



To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/c-prog/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to