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

Can we write a program without main() function?

9 Answers  


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

0 Answers  


what is the value of b if a=5; b=++a + ++a

31 Answers   Infosys, TCS, Tech Mahindra,


What is a void pointer? When is a void pointer used?

0 Answers   Aspire, Infogain,


Write a program to compare two strings without using the strcmp() function

42 Answers   Accenture, Arba Minch University,


how can f be used for both float and double arguments in printf? Are not they different types?

0 Answers  


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

0 Answers   TCS,


What does s c mean on snapchat?

0 Answers  


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

0 Answers   Infosys,


Explain what is page thrashing?

0 Answers  


What are bit fields? What is their use?

2 Answers   Adobe,


What does c value mean?

0 Answers  


Categories