编写一个C程序,定义两个字符数组,并初始化数组的值,然后组合这个两个数组的值并存储在第三个数组中,要求用指向数组的指针实现。例如:
》字符数组arr1
      H      e      l      l      o   
》字符数组arr2
W o r l d
将两个数组合并后存储在数组arr3中,arr3 中元素的值应该为:
       H      e      l      l      o      w      o      r      l      d 
#include<stdio.h>
#define N 5
void main()
{    
    char a[]={'H','e','l','l','o'},b[]={'W','o','r','l','d'};
    char c[N+5];
    char i,k,*o,*p,*q;
    o=a;p=b;q=c;
    
    for(i=0;i<N;i++,*o++)
    {
        *q=*o;
    
    }
        
    c[N+5]=*q;
    
    for(i=0;i<N+5;i++,*p++,*q++)
    {
            if(i>5)
            {
        
                这不知道咋写了
                printf("%c",*q);
            }
    }
    printf("\n");
}    

 
											





 
	     
											
