Write a C program and define a function that takes the length of your name as an input parameter and then allocates memory dynamically to store your name.
#include<stdio.h> #includeint main(){int *n; n = (char*) malloc (20 * sizeof(char) );pritf(“Enter your name”);gets(n); pritf(“Your name is”);while(n!=’0′); printf(“%c”,n++); return 0;} Are you looking for the Class 10 Computer Science SEBA Solution? You are in the right place! This guide provides accurate, well-structured, and easy-to-understand solutions to all topics covered in the SEBA Class 10 Computer…