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. What is dangling pointer in c

  • if pointer is pointing to a memory location from where variable has been deleted
  • if pointer is assigned to more than one variable
  • if pointer is not defined properly
  • none of above

2. Wild pointer in C

  • if pointer is pointing to a memory location from where variable has been deleted
  • if pointer has not been initialized
  • if pointer has not defined properly
  • if pointer pointing to more than one variable

3. printf() belongs to which library of c

  • stdlib.h
  • stdio.h
  • stdout.h
  • stdoutput.h

4. Can getch() be used to echo the input

  • Yes
  • No

5. If include files can be nested

  • Yes
  • No
Read more from - C Programming Questions Answers - Chapter 1
Post a comment

  • Rajib Roy 7 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