Input
Output
#include <stdio.h> #include <stdlib.h> #include <string.h> void main() { char name[100]; char *scope; strcpy( name, "Welcome To ProgamTpoint"); /* dynamically memory allocated*/ scope =(char*) calloc( 100 ,sizeof(char) ); if( scope == NULL ) { printf( "Unable to allocate memory\n"); }else { strcpy( scope, "Share and Support the programtpoint.com"); } printf("Name: %s\n", name ); printf("Scope: %s\n", scope ); free(scope); // release the allocated memory }