Error in following statement.

Q13. The following is also illegal. Why?

main()

{

        int I,j;

        int *ip;

        i=j=ip=0;

}

Ans. This is illegal because ip is a pointer, it cannot be used as integers. Therefore, the following statement will serve the purpose.

i=j=0;

Leave a Reply

Your email address will not be published. Required fields are marked *

46 Views
%d bloggers like this: