Saved Bookmarks
| 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» for(i=0;i<=n;i++) { if(a[i]="element if it is STRING otherwise dont put in quotes") { printf("%d,a[i]"); } { print("element not found") } |
|