In <k5n77p$e5v$> "Bill Cunningham" <> writes:
> I don't like const's. They are a nuisance. You can't directly pass string
> literals to them you want to change.
Why are you passing something as const when you want to change it? That's
kind of the opposite of const.
> void sort_int(void)
> {
> int num={1,3,6,4,5};
> size_t num_len=sizeof num/sizeof (int);
> }
> 2. second line of sort_int. num is not a built in type so it doesn't require
> parenthesis does it?
Sizeof is a keyword, not a function call. It never needs parentheses.
Also, you forgot to declare num as an array.
--
John Gordon A is for Amy, who fell down the stairs
B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"