Lê Thị Kiều Giang
Member
What is the output of this program?
A. sanfoudry
B. segmentation fault
C. syntax error
D. none of the mentioned
Code:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
char *ptr;
memcpy(ptr,"123hoidap",11);
printf("%s\n",ptr);
return 0;
}
B. segmentation fault
C. syntax error
D. none of the mentioned