Advertisement
vaibhav1906

String Code_2

Nov 17th, 2021
1,327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4. int main(){
  5.    
  6.     string str1 = "12";
  7.     string str2 = "51";
  8.    
  9.     string s;
  10.    
  11.     s = str1+str2; // 1251 0r 63 ??
  12.    
  13.     cout<<"s value is : "<<s<<endl;
  14.    
  15.     string a = "hello I am Vai";
  16.    
  17.     a = a + "bhav";
  18.    
  19.     cout<<"a value is : "<<a<<endl;
  20.    
  21.  
  22.    
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement