C - Data Types - Discussion

You Are Here :: Home > C > Data Types - Discussion

 



Q.

What will be the output of following program ?

#include
main()
{
int x,y = 10;
x = y * NULL;
printf("%d",x);
}

A. error B. 0
C. 10 D. garbage value

Answer: Option B
Explaination:

 


0*10 = 0








Discussion

Your Comments Goes here...
NameDiscussion