The difference is that sizeof is parsed as an operator. Sometimes programs have parameterized declarations and the compiler must generate code to calculate sizeof.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Pew, Curtis G <[email protected]> Sent: Monday, April 27, 2020 6:56 PM To: [email protected] Subject: Re: XL C\C ++ sizeof of datatypes On Apr 27, 2020, at 5:29 PM, Charles Mills <[email protected]> wrote: > > I guess it's an operator but it sure as heck looks like a function. > > If it walks like a duck and quacks like a duck ... > -- Pew, Curtis G [email protected] ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
