+ 2
How can we print "Hello World" in C or C++ without using a semicolon?
This question was asked to me in an interview. I want to know then answer to this. Can anyone please help?
6 Antworten
+ 6
try this
#include <stdio.h>
int main(int argc, char *argv[printf("Hello, world!\n")])
{}
+ 6
here is a example with c
#include <stdio.h>
int main() {
if(printf("Printing strings without ';' semicolon")){}
}
https://code.sololearn.com/cGPWY7BfM1se/?ref=app
+ 2
Thank you so much! @Brains
0
Thank you all! All the codes work perfectly!!!
0
I don't know in which way this would reflect how good someone is in using c++. Was this a warm-up question?
https://code.sololearn.com/cY3MQDT1ONkO/?ref=app