fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s="241";
  6. int x = (int)(s[3]-'0');
  7. cout<<x<<endl;
  8. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
-48