I have a problem there,I want to Users decide a,b,c,d,e numbers.
if I write
printf("enter numbers:");
scanf("%d",&a);
printf("enter numbers:");
scanf("%d",&b);...
if ı do like that ,it has not any problem but its not effective,Program always asking number a,b,c etc.
My wish is...
I write a Linear Search code,then ı decided ask to user "r" and "int arr".I mean,User decide their r and arr numbers.I tried scanf("%d",r); command but doesn't work
This code my first code before the decide Ask user :
#include <stdio.h>
int search(int arr[], int n, int r)
{
int i;
for...