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. The compiler in C ignores all text till the end of line using

  • //
  • /
  • */
  • none of above

2. 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

3. If (*p) and **p is same

  • No
  • Yes

4. Out of following program :
float x = 10.7;
int i;

i = (int) x;
print i;

  • null
  • error
  • 10
  • garbage value

5. What is true about fputs function

  • write to a file
  • takes two parameters
  • requires a file pointer
  • all of above
Read more from - C Programming Questions Answers - Chapter 1