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
Example array of struct print
edmond@DESKTOP-M2BC2LH
MergeSort
TruncatablePrime
get the repeated max
voltage float hex value
Hello
Project 3 Part 1 v2
QuickSort
pth_trap.c