So the first input is a character and the second input is a string, and the last input is a whole sentence. It says `Segmentation Fault', I can't find where I did the mistake.
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main()
{
char ch,s,sen[20];
scanf("%c", &ch);
scanf("%s", &s);
scanf("\n");
scanf("%[^\n]%*c", &sen);
printf("%c", ch);
printf("%s", s);
printf("%s", sen);
return 0;
}