"in order to check the repetition of characters in a string in c" we have to pick up each element of the string using a for loop and then using its ASCII value check whether another character of the same ASCII value exists using an if condition statement.
boolean isRepeat(char *s)
{
int i,j;
for(i=0;s[i]!='\0';i++)
{
for(j=i+1;s[i]!='\0';j++)
{
if(s[i]==s[j])
return 1;
}
}
return 0;
}
what is string
i dont no string for servlate
.... String line = "This is example program with spaces"; String[] tokens = line.split(" "); System.out.println(tokens.length-1); .......
what is if(!(str[i]==32))
[ string toupper $str ] or [ string tolower $str ]
what is string
i dont no string for servlate
i am sam
This is an assignment not a question.
what is if(!(str[i]==32))
.... String line = "This is example program with spaces"; String[] tokens = line.split(" "); System.out.println(tokens.length-1); .......
what is if(!(str[i]==32))
Word Processing is used to write letters and type papers.
>>> string = 'slice' >>> letters = list(string) >>> print letters ['s', 'l', 'i', 'c', 'e'] >>> string2 = '' >>> for letter in letters: string2 += letter print string2 s sl sli slic slice
[ string toupper $str ] or [ string tolower $str ]
No.
good morning