Code:
#include<stdio.h>
#include<conio.h> //delete this
#include<stdlib.h>
#define size 10
void main() //see faq void main
{
int i,s;
char **names;
printf("Enter Size Of Array..\n");
scanf("%d",&s);
fflush(stdin); //see faq fflushing stdin
names=(char **)malloc(s*sizeof(char)); //see faq casting malloc
for(i=0;i<s;i++)
{
names[i]=(char *)malloc(size*sizeof(char)); //you don't free these
}
printf("\nEnter Data..\n");
for(i=0;i<s;i++)
{
scanf("%s",&names[i][0]);
}
printf("\nDisplaying Data..\n");
for(i=0;i<s;i++)
{
printf("%s",names[i][0]); //this is a character, not a string. you want names[i]
}
free(names);
getch(); //use getchar. it's standard, getch is not.
}