Reputation: 370
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
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