Error while ' char far'

This is a discussion on Error while ' char far' within the C Programming forums, part of the General Programming Boards category; 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 ...

  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,058
    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, 07:02 AM
  2. Sorting Linked Lists
    By DKING89 in forum C Programming
    Replies: 6
    Last Post: 04-09-2008, 08:36 AM
  3. code condensing
    By bcianfrocca in forum C++ Programming
    Replies: 4
    Last Post: 09-07-2005, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21