i am trying to take a input from user ,
suppose if user types
"a bat and a ball and stick"
if my array is
data[10][20][30] = {
{"a","and","apple"},
{"bat","ball"}
};
from the sentence how i can count
occurrence of "a" in the sentence ( ie , from users input) = 2;
occurrence of "bat" in the sentence = 1;
occurrence of "and" in the sentence = 2;
occurrence of "ball" in the sentence = 1;
and how to store this count ,
and using these counts , how i can i print the sentence in screen from the array . please...