Computer Science, asked by RITIKKUMAR9038, 3 months ago

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 hrastogi374
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