#include<stdio.h>
int linearsearch(int a[5],int r,int e)
{
int i;
for(i=0;i<r;i++)
{
if(e==a[i])
return 1;
}
}
int main()
{
int r;
printf(“enter the size of array\n”);
scanf("%d",&r);
int a[5];
for(i=0;i<r;i++)
scanf("%d",&a[i]);
printf(“enter the value to be searched”);
int e;
scanf("%d",&e);
int flag=linearsearch(a,r,e);
if (flag==1)
printf(“element found”);
else
printf(“element not found”);
}
NOT GETTING MISTAKE…WATS THE MISTAKE