Pages

বুধবার, ২১ নভেম্বর, ২০১২

BUILD IN FUNCTION IN C PROGRAMMING

In c programming <string.h> is a build in function .Some operation of <string.h> are given below:-
1. strcat() -is used for connecting one string with other string.
   Example:- s1=pradip,s2=karmaker
                s=strcat(s1,s2).The new string s will be "pradipkarmaker"
 2.strcpy()- is used for copy one string over another string.
 Example: s1=pradip,s2=karmaker
  s=strcpy(s1,s2).The new string will be "karmaker"
3. strrev()- is used for reverse a text or string.
Example: A string is s="pradip"
s=strrev(s),Then the new string wil be pidarp

1 comments: