This code is part of this program I'm doing. I've edited it so it would get shorter.
#include<stdio.h>
#include<string.h>
main()
{
char zero[5][6] = {"|||||", "| |", "| |", "| |" , "|||||"};
char secOnes[5][6];
strcpy(secOnes,zero);
y=10;
for(i=0;i<5;i++){
gotoxy(20,y++);
printf("%s", secOnes[i]);
}
getch();
}
When I try to compile it, it would give me the warning "Suspicious pointer in function main".
Can you guys tell me how to fix this?
I'd really appreciate it.
Thanks!