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

Can two or more operators such as and be combined in a single line of program code?

1140


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15466


How can I get random integers in a certain range?

815


What is data structure in c and its types?

841


What are external variables in c?

807


praagnovation

2046


What is sizeof return in c?

805


Why is c platform dependent?

826


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

872


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

895


Can variables be declared anywhere in c?

853


What are the types of data types and explain?

886


Explain how can I manipulate strings of multibyte characters?

1003


How can I read/write structures from/to data files?

777


What is non linear data structure in c?

798