공부/C언어
3.[stm32f103][C언어] 구조체 화살표 연산자(포인트 멤버 연산자)->
유저라인
2017. 12. 7. 18:45
728x90
반응형
#include <stdio.h>
typedef struct
{
unsigned int a;
}test_type;
void main(void)
{
test_type *ptr;
test_type test_type1;
ptr = &test_type1;
ptr->a = 5000;
printf("%d\r\n",ptr->a);
}
결과
728x90
반응형