0

Print with out using a statement

Print-hello rahul with out using a statement that ends with a ;(semi colon)

8th Oct 2017, 6:17 AM
Pradip Chakraborty
Pradip Chakraborty - avatar
5 Answers
+ 11
#include <iostream> using namespace std; int main() { if((std::cout << "Hello Rahul!") == 0) {} }
8th Oct 2017, 6:35 AM
P R
P R - avatar
+ 2
Thanks. . I tried the same inside a while loop... . 😊
9th Oct 2017, 10:56 AM
Pradip Chakraborty
Pradip Chakraborty - avatar
+ 2
While(printf("hello rahul")) { break ; }
10th Oct 2017, 4:19 AM
Pradip Chakraborty
Pradip Chakraborty - avatar