missing first character when printing string

Advertisements # include <stdio.h> # include <stdlib.h> #include <string.h> void main (void) { int size, i,j; printf("enter no. of employee\n"); scanf("%d", &j); printf("size of employee id\n"); scanf("%d",&size); char *m[j]; for (i=0; i<j;i++) { m[i] = (char*) malloc(size*sizeof(char)); } for (i=0; i<j;i++) { printf("Enter employee id of %d\n ",i+1); getchar(); gets(m[i]); } printf("employee id are\n ");… Read More missing first character when printing string