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

Answer Posted / 1160

[Error] invalid operands to binary * (have 'int' and 'void *')

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function prototype in c with example?

776


What is the difference between array and linked list in c?

870


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3402


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

812


What is the best way to comment out a section of code that contains comments?

1075


Why is sizeof () an operator and not a function?

777


What are the complete rules for header file searching?

862


Can we compile a program without main() function?

880


What is a macro, and explain how do you use it?

825


What is a substring in c?

796


Explain what’s a signal? Explain what do I use signals for?

795


What is the value of h?

803


Is null always defined as 0(zero)?

824


Explain what is the difference between null and nul?

892


What are categories used for in c?

811