✏️ Explanatory Question

Give the prototype of a function search which receives a sentence sentnc and a word wrd and returns 1 or 0.

👁 76 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

Prototype of the search function:


int search(String sentnc, String wrd);

This function receives a sentence (sentnc) and a word (wrd) and returns 1 if the word is found, otherwise 0.