hi all
i am making a getword and line number program and right now i am working on some parts of the program but something weird has happened this is my code and i get a windows runtime error when i change
char heckman[64]; to this:
char heckman[more than 64]
Code:
#include<stdio.h>
main(){
int a,b=0,c=0,x=0,e=0;
char heckman[64];
char *manyak[50];
while((a=getchar())!=EOF)
heckman[b++]=a;
heckman[b]=0;
/* read the input */
while(c<b){
*((*manyak)+(c))=heckman[c];
c++;
}
*((*manyak)+(c))=0;
printf("%s",*manyak);
getchar();
return 0;
}
anybody knows why is that?
thanx in advance