Home / Questions / Give the prototype of a function search which receives a sentence sentnc and a word wrd and returns 1 or 0.
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 to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

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.