Re: K&R2 section 2.7 type conversions (exercise)
- From: "santosh" <santosh.k83@xxxxxxxxx>
- Date: 13 Mar 2007 07:20:21 -0700
arnuld wrote:
this is exercise 2-3 from the mentioned section. i have created a
solution for it but i see errors and i tried to correct them but still
they are there and mostly are out of my head:
<snip>
Well, fix the errors and warnings gcc is reporting. You're making
several fundamental mistakes. You've not yet understood how to pass
arrays to functions, how to match prototype with function definition,
declaring objects before trying to use them and scope of various types
of objects.
I suspect that you're skipping ahead in K&R without fully
understanding the previous material. This group cannot repeatedly
correct the same errors you make. You'll have to demonstrate that
you're able to learn and desist from previous mistakes.
To start with correct, or try to correct, all the errors, (not
warnings), that gcc is complaining about. Start from the errors
mentioned first and after each correction, recompile and note the new
diagnostic messages. Do this till all the errors are removed. Then we
can progress to constructs that generate a warning.
Always use the -pedantic option with -std=XX, otherwise gcc may accept
implementation specific extensions.
.
- Follow-Ups:
- Re: K&R2 section 2.7 type conversions (exercise)
- From: arnuld
- Re: K&R2 section 2.7 type conversions (exercise)
- From: arnuld
- Re: K&R2 section 2.7 type conversions (exercise)
- References:
- K&R2 section 2.7 type conversions (exercise)
- From: arnuld
- K&R2 section 2.7 type conversions (exercise)
- Prev by Date: Re: Rvalue of struct type
- Next by Date: Re: Real Life Unions
- Previous by thread: K&R2 section 2.7 type conversions (exercise)
- Next by thread: Re: K&R2 section 2.7 type conversions (exercise)
- Index(es):
Relevant Pages
|
|