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



What will be the output of following program #include main() { int x,y = 10; x = y * NULL; pri..

Answer / 1160

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what is the use of operator ^ in C ? and how it works?

2 Answers  


can we execute the program with the object file

1 Answers  


Why malloc is faster than calloc?

0 Answers  


What does #pragma once mean?

0 Answers   Celstream,


what is the similarities between. system call and library function?

1 Answers   Wipro,






The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

0 Answers  


define string ?

0 Answers  


What is operator promotion?

0 Answers  


Explain what are bus errors, memory faults, and core dumps?

0 Answers  


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

0 Answers  


Can we write a program without main() function?

9 Answers  


#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}

3 Answers  


Categories