fork(3) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(){
  4. char *ponteiro = malloc(100);
  5. printf("String: ");
  6. scanf("%99s", ponteiro);
  7. free(ponteiro);
  8. return 0;
  9. }
Success #stdin #stdout 0s 2428KB
stdin
teste
stdout
String: