+ 6
Something Witty
Write a program in c++ that outputs a statement but does not has a ';' at the end of it. Like int a=10; cout<<a<<"Something" But it should work on compiler.
6 odpowiedzi
+ 6
Well Rahul Chittimalla got it.
+ 2
You can use
#include <iostream>
using namespace std;
int main() {
int a=10;
if(cout<<a<<" Something"
)
return 0;
}
+ 2
Nice Aditya Kumar Pandey I know one more method but its a fooling one. Try to get it to OR I shall post it here.
+ 1
yup.. sir i am waiting for your answer.
+ 1
#include <iostream>
using namespace std;
#define s ;
int main() {
int a = 10;
cout<<a<<" something" s
return 0;
}
+ 1
ok sir, Thank you