Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

add char to char array c

char* s = (char*) malloc(10 * sizeof(char));
*s='a';
s++; //move to next/adjacent memory
*s='b';
s--;
printf(s); //output: ab
 
PREVIOUS NEXT
Tagged: #add #char #char #array
ADD COMMENT
Topic
Name
7+4 =