int main()
{ string s = "12a34b56c78d";
   int size = 12;
   writeStuff(s,size);
   return 0;
} // end main
void writeStuff(string s, int size)
{     if (size > 0)
     {     cout << s.substr(size-1, 1);
            writeStuff(s, size-3);  
      }  // end if
}  // end writeStuff

What is supposed to be the output of this?

why do you need to ask us -- just run the program and find out for yourself what the output is.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.