Yaseen Majeed
Yaseen Majeed

Reputation: 370

how to display a message on screen in C without using inbuild printf function?

we have a default in build function (printf()) to display something on screen, is there any other way of printing the same thing ? say I have to display hello string on the screen and that too without using printf() function.

Upvotes: 1

Views: 1865

Answers (1)

Shubham Khatri
Shubham Khatri

Reputation: 281676

If your don't want to use printf() there are always other options like putchar(), puts() etc. But still if you don't want to use any one of them then use

system("echo Hello World!");

It will give you the output Hello World!

Upvotes: 2

Related Questions