I want to do a ternary search for integers in C ... I have tried it...but it\'s not working well for particular cases. Please help me to remove the bugs from the following progr
int a[30],n,i; scanf("%d",&n); for(i=0;i
This is a typical buffer overflow issue. Allocate memory for a dynamically once you know what n is. uncleo solved your issue nicely. :)
a
n