prog.c: In function 'main':
prog.c:11:8: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[20]' [-Wformat=]
scanf("%s",&srcStr);
^
prog.c:14:8: error: assignment to expression with array type
dupStr=copyStr(n,srcStr);
^
prog.c: In function 'copyStr':
prog.c:28:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
return *array;
^