|
What will be printed as the result of the operation below: main(){ char *p1;...
C Interview Questions and Answers
(Continued from previous question...)
What will be printed as the result of the operation below: main(){ char *p1;...
What will be printed as the result of the operation below:
main()
{
char *p1;
char *p2;
p1=(char *)malloc(25);
p2=(char *)malloc(25);
strcpy(p1,”Cisco”);
strcpy(p2,“systems”);
strcat(p1,p2);
printf(“%s”,p1) ;
}
Answer: Ciscosystems
(Continued on next question...)
Other Interview Questions
|