An element x is to searched using linear search in an array „a‟ with „n‟ elements.
Find the condition for continuation of searching if the variable is used to scan the
element.
Answers
Answered by
0
Answer:
for(i=0;i<=n;i++)
{
if(a[i]="element if it is string otherwise dont put in quotes")
{
printf("%d,a[i]");
}
else
{
print("element not found")
}
Explanation:
Similar questions
Environmental Sciences,
1 month ago
English,
1 month ago
India Languages,
3 months ago
Biology,
10 months ago