All pastes #2069535 Raw Edit

Untitled

public text v1 · immutable
#2069535 ·published 2011-05-26 17:19 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>


char *modi(char *dest)
{

  dest[0] = 'A';
  dest[1] = '\0';
  return dest;

}


int main () {

        char *a;
        
        a=malloc(10);

        printf("%s\n", a);

        modi(a);

        printf("%s\n", a);

        return 0;
}