Untitled

 avatar
unknown
plain_text
9 months ago
367 B
3
Indexable
#include<stdio.h>
int main(){
char *name;
char *name_respond;
name =(char*) malloc(10);
name_respond =(char*) malloc(128);
printf("address of name in memory is %d\n", name);
printf("addess of name_respond in memory is %d\n", name_respond);
sprintf(name_respond, "echo %s", "Hey New User");
printf("What is your name?");
gets(name);
system(name_respond);
}
Editor is loading...
Leave a Comment