ANSI C questions (parameters, structure assignment)

demon at desire.wright.edu demon at desire.wright.edu
Thu Aug 23 01:46:12 AEST 1990


	1)	In standard C, when you pass a structure bigger than four
longwords, is the structure passed as a value parameter, or just a pointer to
the structure (thus making it a var parameter)?

	2)	Are structure assignments allowed only for initializations
or can I do:

struct_thing = other_struct_thing;
struct_thing -= still_more_struct;
struct_thing *= even_more_struct;

etc...

	I thought I knew the answer to there but VAX C (I know it's not 100%
ansi) barfs on question #2 type statements of the  -= += etc. kind.

	Thanx,

Brett
demon at wsu.bitnet
bkottmann at falcon.aamrl.wpafb.af.mil



More information about the Comp.lang.c mailing list