Computer Science, asked by varalakshmimamidi, 6 months ago

what is the output?
#include
int main()
{
int a = 100; 
printf(%0 %x, a);​

Answers

Answered by deepmukeshpatil
3

Explanation:

An output device is any piece of computer hardware equipment which converts information into human-readable form. It can be text, graphics, tactile, audio, and video. Some of the output devices are Visual Display Units i.e. a Monitor, Printer, Graphic Output devices, Plotters, Speakers etc.

Answered by devroy26780
9

Explanation:

main()

{

printf("\n main Called Again");

main();

}

Answer : Infinite loop

Description : There is no condition in the main() to stop the recursive calling of the main() hence it will be called infinite no of times.

Question 2

Guess the output of the following program :

#include<stdio.h>

int main()

{

int x = 10;

float y = 10.0;

if (x == y)

printf("x and y are equal");

else

printf("x and y are not equal");

}

Answer : x and y are equal

Description : if (x == y) here we are comparing if (10 == 10.0) hence this condition is satisfied. Because we cannot compare int

and float so the int is converted to float and then compared. Hence it prints “x and y are equal”.

Similar questions