« first day (1930 days earlier)      last day (927 days later) » 

10:02 PM
@Electrical_engineer_student yay
 
 
1 hour later…
11:10 PM
Hey anyone think they could help me with an issue I'm having with my program? I've looked through a couple of previous posts on StackOverflow but can't seem to solve the problem
I'm trying to pass a 2D array to one of the functions that I've defined, but for some reason I keep getting an error saying conflicting types for 'function'
4
To give you guys an idea of what it looks like here is the code:
char maze[6][6] = {
{'S', '#', '#', '#', '#', '#'},
{'.', '.', '.','.', '.', '#'},
{'#', '.', '#', '#', '#', '#'},
{'#', '.', '#', '#', '#', '#'},
{'.', '.', '.', '#', '.', 'G'},
{'#', '#', '.', '.', '.', '#'},
};
This is the 2D array I've defined in main()
and here is the function that I've defined
void mazeGo(char maze[][6], int startRow, int startColumn){
printf("Success");
}
However, when I write this line in main
mazeGo(maze, 1, 2)
I get the error, conflicting types for 'mazeGo'
I've been stuck on it for several hours but can't seem to find how to fix it
Anyone know what could be causing the issue?
 

« first day (1930 days earlier)      last day (927 days later) »