#include<stdio.h>
#include<conio.h>
#include<string.h>
void sort(char [100][100], int);
void main()
{
char str[100][100];
int n, k;
clrscr();
printf("Enter number of words:");
scanf("%d",&n);
for(k=0;k<n;k++)
{
printf("Enter %d word ", k+1);
scanf("%s",str[k]);
}
sort(str, n);
getch();
}
void sort(char str[100][100], int n)
{
int i, j;
char temp[100];
for(i=0;i<n-1;i++)
{
for(j=i+1;j<n;j++)
{
if(strcmpi(str[i],str[j])>0)
{
strcpy(temp,str[i]);
strcpy(str[i],str[j]);
strcpy(str[j],temp);
}
}
}
printf("The sorted out data isn");
for(i=0;i<n;i++)
{
printf("%st", str[i]);
}
}
what is if(!(str[i]==32))
what is if(!(str[i]==32))
diribitio and it translates to "sorting of the"
You can do this: <?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }
lang = long
Processing of data mostly includes sorting algorithms.
"Lang" as used in "Auld Lang Syne" is a word in the Scottish dialect meaning "long".
In Java, if you want to represent the word "grandma," you can simply use a string variable. For example: String grandma = "grandma"; This will store the word "grandma" in the variable named grandma. You can then use this variable in your program as needed.
The root word "lang" and "ling" both come from the Old English word "lang" which means "long." In modern English, "lang" and "ling" are commonly used to refer to language or speech.
String him along is a saying. It begins with the word string.
sort, sorting
Check the documentation of the String class, for a method that searches for a substring.