Search found 1 match

by shreyarora
Sat Feb 28, 2009 10:43 pm
Forum: Volume 2 (200-299)
Topic: 280 - Vertex
Replies: 95
Views: 37952

there is runtime error(SIGSEGV) is coming in my code how can

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<malloc.h>
int main()
{
int n,i,*c,l,x,k,w=0,j;
long int p,q,args;
char *a,*b,temp;
scanf("%d",&n);
a=(char *)malloc(1000*(sizeof(char)));
b=(char *)malloc(1000*sizeof(char));
c=(int *)malloc(10000*sizeof(int));
for(i=0;i<n;i ...

Go to advanced search