Re: Use a variable before it's declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Sure.  That's a completely different issue. But this works:
>
> extern int b;
> int *a = &b;
> int b = 20;
>
> int main(void)
> {
>   	return 0;
> }
>
> and that's what the code you refer do does.

Yes, that make sense, thanks very much :-)
-- 
Rock Lee

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux