download Mastguru Android App

Question Detail

What will be the output of following program
#include
main()
{
int x,y = 10;
x = y * NULL;
printf(\"%d\",x);
}

  • error
  • 0
  • 10
  • Garbage value
Similar Questions :

1. A member is a

  • Variable in a structure
  • Datatype of structure
  • Structure pointer
  • None of above

2. Structures can be used

  • to hold different datatypes
  • have pointers to structures
  • to assign to one another
  • all of above

3. Any type of modification on the parameter inside the function will reflect in actual variable value can be related to

  • call by value
  • call by reference
  • both of above
  • none of above

4. The first expression in a for loop is

  • Step value of loop
  • Value of the counter variable
  • Any of above
  • None of above

5. What is wild pointer in c

  • a pointer which we need to write in future
  • a pointer which has bad naming convention
  • a pointer which has no limit
  • a point which has not initialized
Read more from - C Programming Questions Answers - Chapter 1
Post a comment

  • Rajib Roy 8 years ago

    Suorer bacha "printf("%d",x);" ai statement ta run kore "0" output ki tomar nung er bari giye dia sche???????

  • anand 10 years ago

    que no7 in c. how the answer is zero.can you explain