Why does this give an error?
the error is:
"Conflicting type modifier"
Code:byte far far_array[3] = { 'H', 'i', 0 };
Printable View
Why does this give an error?
the error is:
"Conflicting type modifier"
Code:byte far far_array[3] = { 'H', 'i', 0 };
what is byte? and what is far?
far is for "far pointers". In other words, he has an old ass 16bit compiler, or is trying to use code from a book designed for an old ass compiler. I'd just suggest what I always suggest, get a real compiler.
But I believe what it's actually saying is not to use "far" with your array, since "far" is used with pointers.
Quzah.
What scope is this in? If it's not in file scope then it's a local variable on the stack (hence, near data), so declaring it as far is contradictory.
thanks, that solved one problem.
it was of local scope
just out of curiosity, what compiler are you using?
>what compiler are you using?
Probably Turbo C v.old.
quoted for truth, and funny.Quote:
Originally Posted by Prelude