i have character pointer input and have set 50 bytes of memory for it. After i take input from keyboard using scanf , for example "apple" then i assume that remaining spaces are filled with null character. if it is so , how can i get all the characters or memory location including location of null characters. Is there any way to do it?
int main() {
    char *input;
    int size;
    input = (char *)malloc(50);
    printf("%s\n", "enter something:");
    scanf("%s", input);
    size = strlen(input) + 1;
 
     
    