close

Example Source Code:strcpy(參數1,參數2),將參數2 複製到 參數1。

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char *argv[]) 
{
	char strcpy_a[5]={'a','b','c','d','\0'};
	char strcpy_b[5];
	strcpy(strcpy_b,strcpy_a);
	printf("%s",strcpy_b);
	return 0;
}
//Answer:
//abcd
arrow
arrow

    mitblog 發表在 痞客邦 留言(0) 人氣()