J
Jase Schick
say ..
I have a peice of code like,
i = 10 ;
z = i ; <---------all are global scope..
main()
----
---
but not allowing me to compile and get a.out
...
Then i did,
int i , z ;
i = z = 20 ; multiple varibles initialization in global scope..
main ()
------
------ which is also not working..
but multiple initializations in local scope...is working...
like,
main()
{
int i, z;
i = z = 20;
...... which is Ok when i print..
or int i, z;
i = 20 ;
z = i;
is also Ok...
Why in the Global variable case, the above is not working....
I have a peice of code like,
i = 10 ;
z = i ; <---------all are global scope..
main()
----
---
but not allowing me to compile and get a.out
...
Then i did,
int i , z ;
i = z = 20 ; multiple varibles initialization in global scope..
main ()
------
------ which is also not working..
but multiple initializations in local scope...is working...
like,
main()
{
int i, z;
i = z = 20;
...... which is Ok when i print..
or int i, z;
i = 20 ;
z = i;
is also Ok...
Why in the Global variable case, the above is not working....