Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1997

why do i get overflow?

$
0
0
Here is my code:

#include <stdio.h>
#include <stdlib.h>

#define ROWS_LENGHT 10

void inputNums(int timesTable[][ROWS_LENGHT]);
void printTable(int timesTable[][ROWS_LENGHT]);

int main()
{
int timesTable[ROWS_LENGHT][ROWS_LENGHT] = {0};
inputNums(timesTable);
printTable(timesTable);
return 0;
}

void inputNums(int timesTable[][ROWS_LENGHT])
{
int i = 0;
int j = 0;
for(i = 1 ; i <= ROWS_LENGHT ; i++)
{
for(j = 1 ; j <= ROWS_LENGHT ; j++)...

why do i get overflow?

Viewing all articles
Browse latest Browse all 1997