answersLogoWhite

0


Best Answer

The far keyword is not accepted by gcc compiler and hence it will show the error. 'far' allows you to access a physical memory address directly which is not allowed in modern operating systems like windows or gnu/linux. I think far works on DJGPP - a dos compiler.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Does the declaration in C char far ptr work on a gcc compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is size of char far data type?

char is a primitive data type and depends on the programming language and the operating system.


What rhymes with parr?

bar char far scar star


What is char far datatype in c language?

The far memory type may be used for variables and constants. This memory is accessed using 24-bit addresses and may be on-chip or external.For variables, far memory is limited to 16M. Objects are limited to 64K and may not cross a 64K boundary. Variables declared far are located in the HDATA memory class.For constants (ROM variables), far memory is limited to 16M. Objects are limited to 64K and may not cross a 64K boundary. Constant variables declared far are located in the HCONST group.Declare far objects as follows: unsigned char farfar_variable; unsigned char const farfar_const_variable;


Who did congress send the Declaration of Independence to?

The Declaration of Independence was signed by colonialist leaders and was sent to Britain. Britain tried to trivialize the document merely as the work of disgruntled colonists, going so far as to send propagandists to point out flaws in the document.


What rhymes with char?

car, far, mar, tar, yar!(pirate), par, har (laugh), jar, bar,


Why far pointer is not there in Linux?

Pointer types are very specific to the compiler used and oftentimes subject to the target architecture. The concept of a near/far differentiation may not have any meaning on the memory model of your target. This has nothing to do with Linux or whatever OS you choose to use. More information should be provided with the documentation of your compiler.


Nesting of loops in C may continue upto?

Compiler dependent, but most likely the limit is far above the real needs.


What rhymes with ar?

bar, car, char, czar, far, gar, jar, mar, par, scar, spar, star, tar, tsar, bazaar, bizarre, cigar, dinar, disbar, guitar, sitarcar, bar, far, gar, jar, mar, par, star, spar, tar, scar, char


Can char pointer contain long address in c?

What do you mean by 'long address'?1. If you are asking about 'near' and 'far' pointers, then you should forget them; simply use Huge Memory Model.2. If you mean the address of a 'long int'-type variable, then yes, with type-cast:long l;char *p = (char *)&l;Note: for generic pointers you can use type void *


Why do you think the declaration is still important today?

The Declaration of Independence gives a view of history and as a historical document it is good to know, but as far as practical purposes it doesn't have one.


What was the longest part of the Declaration of Independence?

By far the longest part of the Declaration of Independence is the Indictment of King George III, which is also called the "List of Grievances."


What document did Abraham Lincoln reference in his Gettysburg Address?

1-But in a larger sense we can not dedicate,we can not consecrate,we can not hallow this ground. 2-The brave men ,living and dead,who struggled here,have consecrated it far above our poor power to add or detract.