String Function In C Programming


#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
	char *a,*b,*c="Tutor";
	clrscr();
	printf("\nEnter The String  : ");
	gets(a);
	printf("\nLength : %d",strlen(a));
//www.tutorjoes.com Tutorjoes Computer education
	strcpy(b,a);
	printf("\nB value after copy of A : %s",b);
	printf("\nString Compare : %d",strcmp(a,c));
	printf("\nString Compare i  : %d",strcmpi(a,c));
	printf("\nreverse of B :%s",strrev(b));
	printf("\nConcat A and C : %s ",strcat(c,a));
	printf("\nUpper Case A : %s",strupr(a));
	printf("\nLower CAse A : %s",strlwr(a));
	getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming