#include <stdio.h>
int main(int argc, const char *argv[])
{
char a[32] = "hello";
char b[] = " world";
int i = 0, j = 0;
while(a[i] != '\0')
{
i++;
}
while(b[j] != '\0')
{
a[i] = b[j];
i++;
j++;
}
a[i] = '\0';
printf("a = %s\n",a);
return 0;
}
int main(int argc, const char *argv[])
{
char a[32] = "hello";
char b[] = " world";
int i = 0, j = 0;
while(a[i] != '\0')
{
i++;
}
while(b[j] != '\0')
{
a[i] = b[j];
i++;
j++;
}
a[i] = '\0';
printf("a = %s\n",a);
return 0;
}