Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how to print any text without using printf statement

+3 votes
asked Jan 10 by Aniket Matkar (160 points)

1 Answer

+2 votes
answered 6 days ago by Peter Minarik (45,000 points)

I assume we're talking about C language only, (C++ functions, such as std::cout << are not included)

I'm not sure why you don't want to use the printf() or its variants (e.g. fprintf()) that suit the majority of the cases, but if you really don't want to use it, you can check out puts() or putc() to put a whole string or a single character on the standard output respectively. You find them in stdio.h.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...