Programming Languages
C
Subjective
Mar 15, 2013
How to find a substring in a string without using substr built in functions, and print the substring found?
Detailed Explanation
$r="YASHWANTH";
@n=split (//,$r);
print "@n\n";
@t=splice(@n,0,3);
print "@t\n";
$r=join("",@t);
print "$r\n";
~
~
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts