Write a C Program for Linear Search

LineAR search, Sumit Kar, Timus Rak


void main()


 int arr[10],i,value,index;

 printf("Enter 10 values:\n");



 printf("\nEnter a value to be searched: ");


 index = -1;










  printf("Value found in Array at %d location, %d index",index+1,index);


  printf("Value not found in Array");



Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C