Where st is a 2-dim array that contains something likeCode:char *p; for ( x = 0; x < 4; x++) { p = st[x][1]; sum += strtol(p, NULL, 10); }
+40
+50
+20
+10
so i want to strtol and add up everything , that's why i need to skip the '+'.
i get
assignment makes pointer from integer without a cast warning and then segfault