I want to take n number of inputs and save it in the arrays c[] and p[] and later use them...
I have currently written this,but i'm not getting desired output
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n,t,i,j,size=0;
char s[100000];
char c[100];
char p[100];
scanf("%d", &n);
for(i=0;i<n;i++)
{
scanf("%c", &c[i]);
scanf("%c", &p[i]);
}
for(i=0; i<n;i++)
{
printf("%c %c", c[i],p[i]);
}
return 0;
}