hey guys why dont you use pointers???
i tried it works fine with me

#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <alloc.h>
void fun(char **arr)
{
  printf("%s\n",arr[0]);
  printf("%s\n",arr[1]);
}
void main()
{
  char **arr;
  clrscr();
  strcpy(arr[0],"1asdf");
  strcpy(arr[1],"2sdf");
  fun(arr);
  getch();
}

Reply via email to