On Sun, Oct 4, 2009 at 6:11 PM, Bala <[email protected]> wrote:
>
> 1. Is it a correct initialization of pointer p    int **p = NULL;

Yes

> 2.In K & R it is mentioned that a unioh may be initialized with a value
> of it's first member.But following code works fine.
> int main(int argc, char *argv[])  {
>     union ua{
>         int a;
>         float b;
>      } utest;
> utest.b = 20.01;
> return 0;
> }
> I wanted to know correct interpretation of the above statement

That's not initialisation, that's assignment.


-- 
PJH

http://shabbleland.myminicity.com/
http://www.chavgangs.com/register.php?referer=9375
http://www.kongregate.com/?referrer=Shabble

Reply via email to