fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. void print( const char* txt )
  6. {
  7. cout << strlen( txt ) << endl;
  8. for( const char* p = txt; *p; ++p ) {
  9. cout << *p;
  10. }
  11. cout << endl;
  12. for( const char* p = txt; *p; ++p ) {
  13. cout << '[' << ( int )*p << ']';
  14. }
  15. }
  16.  
  17. int main() {
  18. print( "Я мудак 🤗" );
  19. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
18
Я мудак 🤗
[-48][-81][32][-48][-68][-47][-125][-48][-76][-48][-80][-48][-70][32][-16][-97][-92][-105]