Home » C Programming » Memory Allocation

What will be the output of the program? #include<stdio.h> #include<string.h> int main() { char *s; char *fun(); s = fun(); printf("%s\n", s); return 0; } char *fun() { char buffer[30]; strcpy(buffer, "RAM"); return (buffer); }

Next →

Discussion & Comments

No comments yet. Be the first to comment!