will ny1 xplain this extern concept....
y this is a linker error?

On Sat, Jul 2, 2011 at 12:49 PM, HARSH PAHUJA <[email protected]>wrote:

> @piyush  plz explain how are u getting this......
>
>
> On Sat, Jul 2, 2011 at 12:10 PM, Piyush Sinha <[email protected]>wrote:
>
>> i)  [Linker error] undefined reference to `a'
>>
>> ii) 4
>>
>> On 7/3/11, HARSH PAHUJA <[email protected]> wrote:
>> > 1)
>> > #include<stdio.h>
>> > int main()
>> > {
>> > extern int a;
>> > a=20;
>> > printf("%d",sizeof(a));
>> > return 0;
>> > }
>> >
>> > 2)
>> > #include<stdio.h>
>> > int main()
>> > {
>> > extern int a;
>> > printf("%d",sizeof(a));
>> > return 0;
>> > }
>> >
>> >
>> >
>> > --
>> > HARSHIT PAHUJA
>> > M.N.N.I.T.
>> > ALLAHABAD
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Algorithm Geeks" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> > http://groups.google.com/group/algogeeks?hl=en.
>> >
>> >
>>
>>
>> --
>> *Piyush Sinha*
>> *IIIT, Allahabad*
>> *+91-8792136657*
>> *+91-7483122727*
>> *https://www.facebook.com/profile.php?id=100000655377926 *
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>
>
> --
> HARSHIT PAHUJA
> M.N.N.I.T.
> ALLAHABAD
>
>
>


-- 
HARSHIT PAHUJA
M.N.N.I.T.
ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to