I need to remove all 'a'' from a string.
For example,
String = "apple and orange"
=>String = "pple nd ornge"
That's what I did in Java
But how to convert this Java code into C code?Code:for (int i=0;i<sentence.length();i++){ if (sentence.charAt(i)=='a'){ sentence = sentence.substring(0,i)+sentence.substring(i+1); }
I am new to C, can anyone help me on this code?
thanks