Add Headings and they will appear in your table of contents.
#include <stdio.h>
void main(){
char a[5];
printf("Enter 5 Numbers \t");
gets(a);
printf ("Array Elements Are: \t");
for(int i = 0; i < 5; i++){
printf("%d \n", a[i]);
}