Answer to Question #315044 in C++ for chin

Question #315044

Quotation marks are usually paired with a similar type, like a double quote (") paired with another double quote ("), and the same goes for single quotes ('). However, I'd like to try complicating things by putting together a pair of a double quote(") and a single quote(') in one statement!






Can you do this simple challenge?






Output






A line containing a string.






"'

1
Expert's answer
2022-03-21T06:50:25-0400
#include<iostream>
using namespace std;
int main(int argc, char *argv[]){
	//first variant	
cout<<'\''<<'\"'<<endl;	
//second variant	
cout<<"'''"<<endl;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog