#include<iostream>
#include<conio.h>
using namespace std;
struct Infor{
       char name[21];
       }infot[4];
int main()
{
    infot[0].name="PROGRAM 1";
    cout<<infot[0].name;
    getch();
    return 0;
}
The code is used to initialize a string into a structure containing a char variable.
 
    