α׷

 3204, 157/161 ȸ  α  
   edge12
   帳ϴ!

http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_programming&no=6530 []


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

main()
{
        char *p1[12]; // 迭 p1
        char *p=(char*)malloc(sizeof(char)*12);// p


        strcpy(p1,"haaaaa"); // <- κп ϴ.
        strcpy(p,"hohoho");
}

            
     P1 P Ŷ ߴµ
     VC غ Ʒ ߴ

warning C4047: 'Լ' : 'char *' 'char *[12]'() ٸϴ.
warning C4024: 'strcpy' : Ű 1 ٸϴ.

Q. ̷ ٴ P1 P ٸٴ ǵ  ٸ
    ˰ ͽϴ.

    
    
    

  Hit : 3704     Date : 2015/04/29 01:34



    
84   ̽ å õ Ź帳ϴ[1]     dkflvkdnj
03/16 3666
83   α׷ Թ ..[1]     mwm0202
03/19 3078
82   c [1]     ljh7009
03/19 4276
81   ȳϼ c++ лԴϴ[3]     axio93
03/19 3863
80   ȣ ҽڵ м.....     h@cking2013
03/24 3437
79   б Ʈ Դϴ.     rlagusgh125
03/29 2952
78   ڸ ޾ õ,,, ڸ иϿ ϴ α׷ ۼϴ¹[1]     ys9658
04/04 57840
77   ̰ ϰ Ź帳ϴ.[1]     ys9658
04/06 3382
76   ǽù Green guard α׷ ˷ ּ [1]     wqw3
04/16 4445
75   ms os °ǰ.    
04/18 3171
  帳ϴ!     edge12
04/29 3703
73   Ŀθ忡 process Ȯϴ ֳ?     juhyun16
05/03 3706
72   c ͿñѰ ϴ. [1]     rnjsqhs1628
05/08 3370
71   C int Դϴ.[9]     suho0722
05/13 3256
70   ȳϼ ó ޴µ ڵ ϳ ɱ??     shh9547
05/14 4924
69   c programming Դϴ.[1]     alexparkjw
05/17 3588
68   [1]     gg5085
05/19 4221
67 бԴϴ  c ּФ    
05/30 2
66   ۼ cε..[5]     narasa430
06/12 3358
65   ̽ Դϴ٤̤     chdl1227
06/14 3028
[1]..[151][152][153][154][155][156] 157 [158][159][160]..[161]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org