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

Segmentation Fault (SIGSEGV) in C

$
0
0
I am relatively new on C, I am trying to run a program and I get this Error message: Segmentation fault (core dumped) I just want to print any value of the array bits but I can not, I'd appreciate any help on this error.
Code:
#include <stdio.h>
#include <math.h>
#define COL 204
#define COL_P 2
#define ROWS_P 1020
int codecheck(int (*h)[2],int x[])
{   int i,j,m,f; //flags
   int sum = 0;
   int y[COL];
  
   for (i=0;i<COL;i++)
   y=0;
   m=1;
   f=-1;
   for(i=0;i<ROWS_P;i++)...
Segmentation Fault (SIGSEGV) in C

Viewing all articles
Browse latest Browse all 1987

Trending Articles