All pastes #935556 Raw Edit

Something

public text v1 · immutable
·published 2008-03-09 18:56 UTC
rendered paste body
#include <stdio.h>
#include <string.h>

int main () {

char *be;
char *ki;
char *temp;
char **p, **q, **r;

        be=malloc(1024*sizeof(char));
        ki=malloc(1024*sizeof(char));
        temp=malloc(1024*sizeof(char));
        p=be;
        q=ki;
        r=temp;

        *q="###";
        *r="12345";
        *p="abcdef";

        strcpy(q,r);
        strcpy(q,p);

        printf("%s\n",*q);

        free(be);
        free(ki);
        free(temp);
        return 0;

}