i need to enter an array in a row number so they will become an array
when i enter
1 2 3 4 5 6 7 8
it says debug assertion failed
why its not working??
Code:#include <stdio.h> int read_array(int input[],int i,int size); int main() { int input[40]; printf("%d",read_array(input,0,8)); } int read_array(int input[],int i,int size) { int flag; if (i==size-1) { return 1; } flag=scanf("%d",&input[i]); if (flag==0) { return 0; } else { } read(input,i+1,size); }



LinkBack URL
About LinkBacks




