Code:voidCode:main() { extern char a[30]; }
How much array a is reserving memory space? how?
Code:voidCode:main() { extern char a[30]; }
How much array a is reserving memory space? how?
Why to use extern?
What is extern?
Also the void is not clear why you wrote it... I do not believe that you wanted to write
because the right thing isCode:void main()
and you want to do the right thingCode:int main(void)
As for the array, when we declare
we create space for 30 charactersCode:char a[30]
Code - functions and small libraries I use
It’s 2014 and I still use printf() for debugging.
"Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson