fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char str[] = "hello bob";
  7. for(int i = (sizeof(str)/sizeof(char)); i>=0; i--){
  8. cout <<str[i];
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
bob olleh