Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
SIGABRT error
//Title of this code #include <stdbool.h> #include <stdio.h> #include <ctype.h> int main(void) { //int i; //char arrstr[10] = {'2','b','5','3','f','j','5','f','\0'}; //for(i=0;arrstr[i]!='\0';i++) // printf("%c is a digit: %s\n",arrstr[i],isdigit(arrstr[i])? "true" : "false"); //char *ptr = "5ellp"; //bool x = isdigit(*ptr); //printf("%d",x);//t is a digit //char * ptr = "water runs dry" // ; //printf("%s\n",ptr); //ptr=""; //printf("%s",ptr);//segfault int i,j; char ** instrfields; instrfields = (char **)malloc(100*sizeof(char *)); for(i=0;i<3;i++){ *(instrfields+i) = (char *)malloc(20*sizeof(char *));} char * ch1;char * ch2; char * ch3; ch1="soul"; ch2="sister"; ch3="train"; instrfields[0]=ch1; instrfields[1]=ch2; instrfields[2]=ch3; for(j=0;j<3;j++){ free(instrfields[j]); } free(instrfields); return 0; }
run
|
edit
|
history
|
help
0
Swiss Infotech Tutorial
PRACTICE 1
Palindromo
3,6,8
Rotación matriz anti horaria
Spring 2017 Project 2 v1.3
ej 2 c3
Spring 2017 Project 2 v1.6
Michael Bean's Spring 2017 Lab 3 v1.1
Iterated sums