On Thu, Jul 22, 2010 at 8:43 PM, Isaac Marino Bavaresco < isaacbavaresco@yahoo.com.br> wrote: > No, automatic variables are not cleared upon function entry, they may > contain garbage. > That's why you need to initialize all variables you have. Not sure about C1= 8 but some compilers throws warnings at compilation time about using uninitialized variables. As a practise I found it easier to write "int myVa= r =3D 0;" as opposed to "int myVar;" so the initialization will not be forgot= ten -- however, sometimes it is only a way to suppress those warnings... Tamas Global variables are cleared to zero at program start, but some > tool-chains support a switch > to disable this feature. > > __________________________________________________ > Fale com seus amigos de gra=E7a com o novo Yahoo! Messenger > http://br.messenger.yahoo.com/ > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .