Thread: Error while ' char far'

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    83

    Error while ' char far'

    Dear All,
    I am getting in following code..
    Code:
    char far *farther,*farthest; 
    printf("%d..%d",sizeof(farther),sizeof(farthest));
    error i am getting is :-
    nonstandard extension used : 'far' is an obsolete keyword
    i am using VC++ compiler.

    Thanks in advance for help.
    Shwetha

  2. #2
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Don't use the far keyword. You shouldn't need it, except in some really obscure situations. If you're not really sure you need it, you probably don't. If you do, you'll have to use a different compiler.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,059
    I stumbled on this faq in case you were interested.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 06:02 AM
  2. Sorting Linked Lists
    By DKING89 in forum C Programming
    Replies: 6
    Last Post: 04-09-2008, 07:36 AM
  3. code condensing
    By bcianfrocca in forum C++ Programming
    Replies: 4
    Last Post: 09-07-2005, 09:22 AM
  4. Passing structures... I can't get it right.
    By j0hnb in forum C Programming
    Replies: 6
    Last Post: 01-26-2003, 11:55 AM
  5. String sorthing, file opening and saving.
    By j0hnb in forum C Programming
    Replies: 9
    Last Post: 01-23-2003, 01:18 AM