IT기초/C 언어
[C Language] 구조체
ITtechRoy
2014. 9. 8. 22:46
728x90
반응형
[C Language] 구조체
#include<stdio.h>
struct point
{
int x;
int y;
};
struct point function();
int main()
{
struct point p;
p=function();
printf("%d %d \n", p.x, p.y);
return 0;
}
struct point function()
{
struct point call={10, 20};
return call;
}
728x90
반응형