<div>아래와 같이 구조체 배열에 속한 맴버배열의 주소를 얻고 싶은데</div> <div>빌드를 했을 때 타입이 맞지 않다고 warning이 나오네요.</div> <div><br></div> <div>Strt[0].Array[0]의 주소를 얻어 (int *) 형 포인터에 대입하고 싶은데</div> <div>무엇이 잘 못 된거죠?</div> <div><br></div> <div> <div class="colorscripter-code" style="color:#f0f0f0;overflow:auto;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <table class="colorscripter-code-table" style="margin:0px;padding:0px;border:none;background-color:#272727;" cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:6px;border-right:2px solid rgb(79,79,79);"> <div style="margin:0px;padding:0px;text-align:right;color:#aaaaaa;line-height:130%;"> <div style="line-height:130%;">1</div> <div style="line-height:130%;">2</div> <div style="line-height:130%;">3</div> <div style="line-height:130%;">4</div> <div style="line-height:130%;">5</div> <div style="line-height:130%;">6</div> <div style="line-height:130%;">7</div> <div style="line-height:130%;">8</div> <div style="line-height:130%;">9</div> <div style="line-height:130%;">10</div></div></td> <td style="padding:6px 0px;"> <div style="margin:0px;padding:0px;color:#f0f0f0;line-height:130%;"> <div style="padding:0px 6px;white-space:pre;line-height:130%;"><span style="color:#ff3399;">typedef</span> <span style="color:#ff3399;">struct</span></div> <div style="padding:0px 6px;white-space:pre;line-height:130%;">{</div> <div style="padding:0px 6px;white-space:pre;line-height:130%;"> <span style="color:#4be6fa;">int</span> Array[<span style="color:#c10aff;">5</span>];</div> <div style="padding:0px 6px;white-space:pre;line-height:130%;">}tag_TestStruct;</div> <div style="padding:0px 6px;white-space:pre;line-height:130%;">tag_TestStruct Strt[<span style="color:#c10aff;">5</span>];</div> <div style="padding:0px 6px;white-space:pre;line-height:130%;"> </div> <div style="padding:0px 6px;white-space:pre;line-height:130%;"> </div> <div style="padding:0px 6px;white-space:pre;line-height:130%;"><span style="color:#4be6fa;">int</span> <span style="color:#aaffaa;"></span><span style="color:#ff3399;">*</span>pInt;</div> <div style="padding:0px 6px;white-space:pre;line-height:130%;">pInt <span style="color:#aaffaa;"></span><span style="color:#ff3399;">=</span> <span style="color:#aaffaa;"></span><span style="color:#ff3399;">&</span>Strt[<span style="color:#c10aff;">0</span>].Array[<span style="color:#c10aff;">0</span>];</div> <div style="padding:0px 6px;white-space:pre;line-height:130%;"> </div></div></td> <td style="vertical-align:bottom;padding:0px 2px 4px 0px;"><a target="_blank" href="http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:#FFFFFF;"><span style="font-size:9px;background-color:#4f4f4f;padding:1px;">cs</span></a></td></tr></tbody></table><br></div></div> <div class="colorscripter-code" style="color:#f0f0f0;overflow:auto;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"><br></div> <div class="colorscripter-code" style="color:#f0f0f0;overflow:auto;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;">ㅇㅇㅇ</div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.