fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int size (char *p)
  8. {
  9. return (*p ? (1 + size(++p)) : 0);
  10. }
  11. int main()
  12. {
  13. char* p;
  14. cout << size(p) << endl;
  15. }
Runtime error #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout
Standard output is empty