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. Which of the following below is/are valid C keywords

  • integer
  • int
  • null
  • none of above

2. UML meaning is

  • Unique modeling language
  • Unified modeling language
  • Unified modern language
  • Unified master laqnguage

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

4. What will be output of
#include
void main()
{
char test =`S`;
printf("\n%c",test);
}

  • S
  • Error
  • Garbage value
  • None of above

5. Adding to a pointer that points to an array will

  • Cause an error
  • Increase the value of the element that the pointer is pointing to
  • Cause the pointer to point to the next element in the array
  • None of above
Read more from - C Programming Questions Answers - Chapter 1
Post a comment

  • Rajib Roy 3 years ago

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

  • anand 5 years ago

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