[Courses] Reminder, and questions (and semi spoiler on ex 6-1)

Jenn Vesperman jenn at anthill.echidna.id.au
Tue Feb 26 06:14:12 EST 2002


On Tue, 2002-02-26 at 00:54, Michelle Murrain wrote:

>   I have two questions for the gurus:
> 
> 1) Why is forgetting the "\n" at the end of a printf statement suppress the 
> line altogether? ( in perl, it will simply print the line w/o a newline).

It's never done that to me. In all my programs, it prints the line
without a newline.
 

> double sqrt(double distance);

> /home/mpm/code/cprograms/ex6-1.c:26: undefined reference to `sqrt'
> collect2: ld returned 1 exit status
> 
> So what am I doing wrong?

I'm curious about why you've put in a function definition for sqrt.




Jenn V.
-- 
    "Do you ever wonder if there's a whole section of geek culture 
        	you miss out on by being a geek?" - Dancer.

jenn at anthill.echidna.id.au     http://anthill.echidna.id.au/~jenn/





More information about the Courses mailing list