Computer Science, asked by sailakshmi2798, 2 months ago

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 kinuhokage
5

Answer:

what is this coding language ??

Explanation:

if it is python the ans is

Answered by moinuldeen1324
0

the output will be Rahul of this program.

Similar questions