+ 1

char a="hello world" ; printf("%. 2s",a);

How to write above code in c++ It's output is "he"

22nd Feb 2019, 7:24 AM
David Boga
David Boga - avatar
1 ответ
+ 1
#include <iostream> using namespace std; int main(){ string a = "hello world"; cout<<a; return 0; }
22nd Feb 2019, 7:47 AM
Madhav
Madhav - avatar