Write a C or C++ program to display hello world on the screen without using cout(see-out) or printf()
Answers
Answered by
23
Topic
C ++
Program for
Displaying 'Hello World!!' on the screen without using cout or printf().
Prerequisite Knowledge
We have to display ' Hello World!! ' without using cout or printf(). It means we can't use basic functions which are generally used to print or display characters.
So, we will use puts() function which is another one of the basic functions used to put or display the characters.
Program
#include <stdio.h>
int main()
{
puts("Hello World!!");
getchar();
return 0;
}
Additional Information :-
C ++
- It is a general purpose programming language.
- It was developed by Bjarne Stroustrup.
- Applications made from C++ are supported by most of the systems and can be used on various platforms.
- C++ is easily portable.
Attachments:
Similar questions