#Solution Question level-Interview Level main() { char s[ - TopicsExpress



          

#Solution Question level-Interview Level main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf(" %c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); } Output- mmmm aaaa nnnn Explaination-Here we used s[i] instead of test condition and it returns ascii value of character in string s.when string ends then it return 0 so loop executes 3 times and print 4 times s[i] in each cycle of loop. If any problem with this solution then cmnt plz. #Akshay kumar
Posted on: Tue, 10 Sep 2013 18:06:14 +0000

Trending Topics



Recently Viewed Topics




© 2015