trlen(string);\rstring2=(char*)malloc(size+1);\rfor(i=0;i<size;i++)\rstring2[size-1-i]=string;\rstring2[size]=''E\rfor(i=0;i<5000000;i++)\rsum+=i;\rprintf("Thestringprintedbackwardis%s@string2);\r)\r$gcc-pg-ohellohello,c$./hello$gprofhellomoreKLMNOPFlat\rprofile:Eachsamplecountsas0.01seconds.%cumulativeselfselftotaltime\rsecondssecondscallsus/callus/callname69.230.090.09190000.00103333.33\rmyprint230.770.130.04313333.3313333.33count_sum0.000.130.0020.00\r13333.33my_print%YZ[\n\]^N]0@_timeYZN`ab\rcumulativecde\nYZ[\nfgNseconds(hi[\nj^kl\nfgN\r)selfYZ[\nfgNseconds(j^kl\nfgNmdn o)\rcallsj^p\nselfq[YZ[\nfgNreus/calltotalq[YZ[\np\rslj^kl\nus/callfgNrename\ntus\nvwxPYZ\rmyprinty\nz{|fg}~lj^?count_sum()\n\cde\n\r0.13.
gprofLMN\nv\nvNOP\r.