Code:voidCode:main() { extern char a[30]; }
How much array a is reserving memory space? how?
This is a discussion on simple within the C Programming forums, part of the General Programming Boards category; Code: void Code: 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 2013 and I still use printf() for debugging.