Can we print a statement with out using printf/cout statement also not using ; in c/c++ or any other programming language ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we print a statement with out using printf/cout statement also not using ; in c/c++ or any other programming language ?

If possible then how ?

25th Feb 2017, 10:57 AM
Abhiseka Dash
Abhiseka Dash - avatar
4 Answers
+ 5
There are multiple ways to do that. One of them is to use the "puts" statement. For example, puts("Hello World!");
25th Feb 2017, 11:04 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 4
try this if(puts("hello")) {}
3rd Mar 2017, 2:31 PM
Shaunak Pai Kane
Shaunak Pai Kane - avatar
+ 4
u can use while loop or for loop to print it multiple times..
3rd Mar 2017, 2:35 PM
Shaunak Pai Kane
Shaunak Pai Kane - avatar
+ 1
yes this may b me possible. but question is without using ; (semicolon).
3rd Mar 2017, 8:44 AM
Abhiseka Dash
Abhiseka Dash - avatar