PHP код:
Код: Выделить всё
#include
#include
void f(char *c, int *n)
{
*n=10;
c=(char*)malloc(*n+1);
for(int i=0; iКод: Выделить всё
#include
#include
void f(char *c, int *n)
{
*n=10;
c=(char*)malloc(*n+1);
for(int i=0; iКод: Выделить всё
void f(char **c, int *n)Код: Выделить всё
*c = (char*)malloc(*n+1);Код: Выделить всё
(*c)[i]='a';Код: Выделить всё
printf("%c", c[i]);Код: Выделить всё
#include
#include
void f(char ***c, int *n)
{
*n=10;
*c=(char**)malloc(*n*sizeof(char*));
for (int i=0; i