Re: C std question: while loop with two tests.

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

 



On Mon, 2013-05-06 at 17:48 +0200, Anupam Chahar wrote:
> It has two different while loops
> I guess it will break down into this:
> 
> 
> int foo(int x)
> {
>       while (1)
>       {
>           if (x>0) continue;
>        }
> 
> 
>        while(0);
> }
> 
> 
> So it is correct

> 
> 
> -- 
> Anupam Chahar

Thanks, that makes sense now.

Steve Ellcey
sellcey@xxxxxxxxxx








[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux