C++

Objectives :

  • File name: char_append_strncat1.cpp
    • Append character using function "strncat(---) of cstdio<string.h> library header file.
  • Code: char_append_strncat1.txt
     
 

Step: 1 Create a source file.

Step: 2 Edit and save Source file.

Step: 3 Runtime Views: Prints one character at a time.

Step: 4 Brief Discussion : Like function "strcat(--)" of cstring<string.h> library of C programming, the function "strncat()" will concatenate the character sequence; however unlike "strcat(--)", the function "strncat(--)" enables you to specify the number of character you intend to append.