What will the following program do?void main(){int i;char a[]="String";char *p="New String";char *Temp;Temp=a;a=malloc(strlen(p) + 1);strcpy(a,p); //Line no:9//p = malloc(strlen(Temp) + 1);strcpy(p,Temp);printf("(%s, %s)",a,p);free(p);free(a);} //Line no 15//a) Swap contents of p & a and print:(New string, string)b) Generate compilation error in line number 8c) Generate compilation error in line number 5d) Generate compilation error in line number 7e) Generate compilation error in line number 1

b

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions