+ 2
array in c
how can check the first character of array and two character before of las t character, those are equal or not??? For example, BANGLA in this word 2nd and last character same. How can do that???
4 Answers
+ 1
c
0
What programming language? The methods are different
0
Iâm pretty bad at C, so Iâll do it in C++
std::string string = âBANGLAâ;
if(string[0] == string[string.length-1]){
//will be true for bangla
std::cout << âSame Letterâ << std::endl;
}
0
tnx