Thread: The Use of Extern

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    178

    The Use of Extern

    The authors of 'The C Programming Language' leave me unsure in the use of extern when utilizing one source file. Can someone explain when extern should be used?

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    If you have only a single source file, then it is very unlikely you will need to ever use extern in it.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  3. #3
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how extern is extern?
    By davo666 in forum C Programming
    Replies: 11
    Last Post: 03-05-2009, 04:45 AM
  2. Replies: 17
    Last Post: 12-15-2006, 11:02 AM
  3. Using extern C and mfc?
    By seizmic in forum C++ Programming
    Replies: 2
    Last Post: 10-22-2005, 01:31 PM
  4. using extern, please help
    By Stevo in forum C++ Programming
    Replies: 2
    Last Post: 10-10-2004, 06:18 PM