0% found this document useful (0 votes)
81 views2 pages

String 2

Uploaded by

Mai Gado
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views2 pages

String 2

Uploaded by

Mai Gado
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

#include<stdio.

h>

int main()
{
char [20], * ;
printf("Enter a string\n");
scanf("%s", );
= ;
while(* != '\0')
{
if(* >= 97 && * <= 122)
* = * -32;
++;
}
printf("%s", );
return 0;
}

char *p = "Sanjay";
char a[] = "Sanjay";

p
a
'\0'
%s
strlen()

strcmp(s1, s2)

strcmp(s1, s2)

strcmp(s1, s2)

strcmp(s1, s2)

strcmp int

You might also like