27/march/2021 Things you cannot do •You cannot - use “=” to assign one array variable to another: a = b; /* a and b are arrays */ -use “==” to directly compare array variables: if (a==b) .……… . . - directly scanf or printf arrays: printf (“……”, a) ; - The size may be omitted. In such cases, the compiler automatically allocates enough space for all initialized elements. int flag [] = {1, 1, 1,0} ; char name [] = {‘A’, ‘m’, ‘i’ , ‘t’ } ; How to copy the elements of one array to another? • By copying individual elements: How to read the elements of an array? By reading them one element at a time. • The ampersand (&) is necessary. • The elements can be entered all in one line or different lines. How the print the elements of an array? • By printing them one element at a time. • The elements are printed one per line. -The elements are printed all in one line. Character string Introduction • A string is an array of ch