What will be the output of the following program?
#include <stdlib.h>
struct emp{
int len;
char name[1];
};
int main()
{
char newname[] = "Rahul";
struct emp *p = (struct emp *) malloc(sizeof(struct emp)-1 +
strlen(newname)+1);
p->len=strlen(newname);
strcpy(p->name, newname);
printf("%d#%s", p->len, p->name);
return 0;
}
Answers
Answered by
5
Answer:
what is this coding language ??
Explanation:
if it is python the ans is
Answered by
0
the output will be Rahul of this program.
Similar questions