Computer Science, asked by deshmukhharshad2004, 5 days ago

Which program outputs "Hello World.." .?
A)
main()
{
scanf("Hello World..");
}
B)
main()
{
printf("Hello World..");
}
C)
main()
{
print("Hello World..");
}
D)
main()
{
scan("Hello World..");
}​

Answers

Answered by dapushree
3

Answer:

option B is correct

Explanation:

because printf is used to display the message on the screen..

and it is written in double quotation marks

Answered by remyanairlm
0

Answer:

The correct option is B).

Explanation:

In order to print output on the screen, printf( ) keyword is used.

Whereas, scanf( ) is used for accepting user input.

There are no functions like scan( ) and print( ).

main()

{

printf("Hello World..");

}

The above program correctly prints "Hello World.." as output.

Therefore the correct option is B).

Similar questions