Answer to Question #332324 in C++ for Rille

Question #332324

Declare variables text type of string and chr type of char.

1
Expert's answer
2022-04-22T13:23:19-0400
#include <iostream>
#include <string>>
using namespace std;

int main() {
  string str1, str2="Hello";
  char ch, y_n='Y';
 
   cout << str2 << endl;
   cout<< y_n << 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
APPROVED BY CLIENTS