1.

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.

Answer»

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:



Discussion

No Comment Found