Re: GCC Differences

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I'm honestly not trying to resurrect some gcc 2.96 flame war or anything 
> here, but I'm not a very seasoned C programmer, and I've run across an 
> inconsistancy between Red Hat's version of gcc, and gcc 2.95.4 on a Debian 
> system.  Consider the following uninspired, pointless piece of code:
> 
> #include <stdio.h>
> 
> float toot(int, float);
> 
> main() {
>    int a = 4;
>    float b = 5;
>    float result = 0;
> 
>    result = toot(a, b);
>    printf("%f\n", result);
> }
> 
> float toot(int x, float y) {
>    if (y == 20) {
>       return y;
>    } else {
>       toot(x, x*y);

I wuz wondering what this line is supposed to do.

>    }
> }
> 
> 
>

-- 
Cheers
John Summerfield

Microsoft's most solid OS: http://www.geocities.com/rcwoolley/

Note: mail delivered to me is deemed to be intended for me, for my disposition.

==============================
If you don't like being told you're wrong,
	be right!





_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux