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
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
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
English,
2 days ago
Social Sciences,
5 days ago
Biology,
5 days ago
Social Sciences,
8 months ago
Science,
8 months ago
French,
8 months ago