Re: [ILUG] C initialistaion question.

From: John P. Looney (john at domain antefacto.com)
Date: Fri 25 May 2001 - 11:13:25 IST


On Fri, May 25, 2001 at 10:03:27AM +0000, Conor Daly mentioned:
> Given:
>
> int a, b, c, d;
> float g, h, i, j;
>
> a=-999;
> b=-999;
> c=-999;
> d=-999;
>
> g=-999.9;
> h=-999.9;
> i=-999.9;
> j=-999.9;
>
>
> can I do something like
>
> int {a, b, c, d} =-999;
> float {g, h, i, j} =-999.9;

 Lumme. Try;

 int a,b,c,d;
 a=b=c=d=-999;

Kate

-- 
 When I say 'free', I mean 'free': free from bond, of chain or command: 
to go where you will, even to Mordor, Saruman, if you desire. " 
    -- Gandalf, paraphrasing the choice between Free and Non-free software


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:27 GMT