TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Ian Binnie
from: Paul Edwards
date: 1996-05-20 16:11:52
subject: indirection

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.)

I am not sure anyone knows everything about C.  I didn't know the
above.  Another thing I only found out recently is that you have
to go unsigned int xxx:1;
in a structure, rather than unsigned short xxx:1;

BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

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™.