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

String 1

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)
37 views2 pages

String 1

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

gets();

stdin

#include <stdio.h>

int main(void)
{
char [80];

printf("Enter a string:");
gets( );
printf("The string input was: %s\n", );
return 0;
}

int xstrlen(char * )
{
int =0;
while(* !='\0')
{ ++; ++; }
return ( );
}

int xstrlen(char )
{
int =0;
while(* !='\0')
++; ++;
return ( );
}
int xstrlen(char * )
{
int =0;
while(* !='\0')
++;
return ( );
}

int xstrlen(char * )
{
int =0;
while(* !='\0')
++;
return ( );
}

#include<stdio.h>

int xstrlen(char * )
{
int =0;
while(* !='\0')
{ ++; ++; }
return ( );
}

int main()
{
char [] = "IndiaBIX";
printf("Length = %d\n", xstrlen( ));
return 0;
}

You might also like