4RAYA/TCOMPROB.CPP
2021-09-12 19:47:27 +02:00

20 lines
241 B
C++

#include <stdio.h>
char t[7][7];
void main (void)
{
int x, y;
char *d;
d = &t[0][0];
for ( x=0; x<7; x++)
for ( y=0; y<7; y++)
{
t[x][y] = 7*y + x;
if ( t[x][y] != *( d + 7*x + y ) )
printf ( "DISTINTOS\n" );
}
}