Hi,
I defined,
Uint16 TCounts[10]; in globals.h
and tried to use it in cc01drv.c where #include "globals.h" is there.
but during build the error msg coming up is, "C202 undefined identifier"
Why this is happening, I haven't initialize the array.
reference by Herbert Schildt.
Bad idea. You picked the worst possible author to acquire a C book by. Dump it now before you do yourself further harm, and get a proper textbook. See the C FAQ for suggestions.
Why I have to define main in this way?
Because you don't. You're being taught wrong techniques by a long since outdated book by a thoroughly misguided author.