Long time that I came out of C programming.
I think the first set of files will never get linked for the want of
definition of a variable called "x".
Secound set defines and declares - I dont see a problem.

I think you just need to understand the difference between declaring and
defining a variable in C. But, again I am told people dont learn C anymore
at school.


knk

On 8/15/07, Aravindhan Krishnan <[EMAIL PROTECTED]> wrote:
>
>   Whats the difference between the following declarations.?
>
> //file 1
> extern int x=8;
>
> // file 2
> extern int x;
>
> (AND)
>
> //file 1
> int x=8;
>
> // file 2
> extern int x;
>
> Thanks,
> Aravindhan
>  
>

Reply via email to