#include //#include // cstdio library and stdio.h header file #include using namespace std; //char_append_strncat1.cpp int main() { char str1[12] = "Hello World"; //unsigned int n1 = str1.size(); char ch1[13]; // defined the length of an array for(int i = 0; i <12 ; i++) { strcpy(ch1, ""); strncat(ch1,str1,i); //strcat(ch1,str1);//will print complete char sequence puts(ch1); } return 0; }