--- In [email protected], Bala <prentice_2...@...> wrote:
> 1. Is it a correct initialization of pointer p    int **p = NULL;

What do you think and why?

> 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;

There is no initialisation here.

>    utest.b = 20.01;

This is an assignment.

>    return 0;    }
> I wanted to know correct interpretation of the above statement

Initialisation is when you assign a value at the point of
declaration.

-- 
Peter

Reply via email to