Question: are c arrays initialized to 0?
Answer: char ZEROARRAY[1024]; at global scope it will be all zeros at runtime. But actually there is a shorthand syntax if you had a local array. If an array is partially initialized, elements that are not initialized receive the value 0 of the appropriate type.