fork(2) download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. const char tekst[] = "\tANASI-C\n";
  7. size_t size = sizeof(tekst) / sizeof(char);
  8. cout << "size: " << size << endl;
  9. cout << "last char: 0x" << setfill('0') << setw(2) << hex << ((int) tekst[size-1]) << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
size: 10
last char: 0x00