#include<iostream> using namespace std; int main(){ char *ch="bhj"; char *t=ch; while(*t++); t-=2; cout<<*t; return 0; }
方法二:
while(*q) q++; q--;