| [ CnUnix ] in KIDS 글 쓴 이(By): Sue (eXponent) 날 짜 (Date): 2003년 1월 2일 목요일 오후 04시 59분 38초 제 목(Title): Re: [질문] 포인터와 배열 차이 ..... 여기서, char *temp = "This is a test sring. It contains two sentence."; 라고 초기화 하면서, 선언하면, core dump 된다고 나오네여. temp 와 s 를 따로 선언해야 하나여???? ----------------- char *temp; printf("%d", temp); 같은 식으로 하면 어떤 값이 나올지요... 경우에 따라 알아서 memory allocation을 하기도? 하지만, 그렇지 않을 경우가 많겠죠. ** sort_int proc mov cx,(ARRAY_COUNT - 1) mov si,offset integer_array L0: push cx mov bx,0 L1: mov ax, [si + bx] add bx,2 cmp ax,[si + bx] jle L2 mSwap [si+bx-2],[si+bx] L2: loop L1 pop cx loop L0 ret sort_int endp ** |