-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ceda6d
commit f1311ff
Showing
7 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include<iostream> | ||
#include<string.h> | ||
using namespace std; | ||
int main() | ||
{ | ||
char string1[70]="Vinay Is a GOOD bay"; | ||
char ch='v'; | ||
int n; | ||
strchr(string1, ch); | ||
cout<<"\n Value of n :"<<; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include<iostream> | ||
#include<string.h> | ||
using namespace std; | ||
int main() | ||
{ | ||
char string1[100]="vinay"; | ||
char string2[100]="amit"; | ||
int n; | ||
|
||
n = strcmp(string1,string1); | ||
if(n>0) { | ||
cout<<"String 1 is greater than string 2"; | ||
} | ||
if(n<0){ | ||
cout<<"String 2 is greater than string 1"; | ||
} | ||
if(n==0){ | ||
cout<<"\n Both are equal"; | ||
} | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include<iostream> | ||
#include<string.h> | ||
using namespace std; | ||
int main() | ||
{ | ||
char string1[7]="vinay"; | ||
char string2[100]="amit"; | ||
strcat(string1,string2); | ||
cout<<"\n Concatenated string :"<<string1; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include<iostream> | ||
#include<string.h> | ||
using namespace std; | ||
int main() | ||
{ | ||
char string1[70]="Vinay Is a GOOD bay"; | ||
strlwr(string1); | ||
cout<<"\n Lowercase string :"<<string1; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include<iostream> | ||
#include<string.h> | ||
using namespace std; | ||
int main() | ||
{ | ||
char string1[70]="vinay is a good boy"; | ||
strrev(string1); | ||
cout<<"\n Reverse string :"<<string1; | ||
return 0; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include<iostream> | ||
#include<string.h> | ||
using namespace std; | ||
int main() | ||
{ | ||
char string1[70]="Vinay Is a GOOD bay"; | ||
strupr(string1); | ||
cout<<"\n Uppercase string :"<<string1; | ||
return 0; | ||
} |