| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | indirection |
Quoting Paul Edwards to Ian Binnie:
PE> int *x;
PE> int y;
PE> y = 3 * x;
IB> is illegal - the only legal arithmetic operations on pointers are:-
IB> addition or subtraction of an integer (including increment/decrement)
IB> the difference between pointers.
PE> y = * x;
PE> y = *x;
IB> are equivalent, whitespace is ignored.
IB> (As I am quite sure you already know.)
PE> I am not sure anyone knows everything about C. I didn't know the
PE> above. Another thing I only found out recently is that you have
PE> to go unsigned int xxx:1;
PE> in a structure, rather than unsigned short xxx:1;
Is that in the standard or something you've observed? This compiled without
error with EMX/GCC:
int main()
{
struct fred {
unsigned short xxx:1;
unsigned int yyy:1;
unsigned short int zzz:1;
};
}
It might be the compiler (or maybe GCC does something it shouldn't. Does
"unsigned short int" work?
... Happiness won't buy money.
--- FMailX 1.02
* Origin: Power BBS - +61-2-858-4114 - Files/Games/EchoMail/Internet (3:711/953)SEEN-BY: 50/99 620/243 623/630 711/401 409 410 413 430 808 809 932 934 946 SEEN-BY: 711/953 963 712/515 713/888 714/906 800/1 @PATH: 711/953 410 808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.