본문 바로가기

Programming399

[C] Module /*------------------------------------------------------------------------------------------ @ Pratice C laguage Author : SAMCreated : 30-03-2017Modified : 30-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Module ------------------------------------------------------------------------------------------*/ int i = 0; /*----------------------------------------------------------.. 2017. 3. 30.
[C] Macro, Predef /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 29-03-2017Modified : 29-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Macro, Predef------------------------------------------------------------------------------------------*/ #include int main(void) {printf("line number : %d\n", __LINE__);pr.. 2017. 3. 29.
[C] Memory Token /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 29-03-2017Modified : 29-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Macro, Token------------------------------------------------------------------------------------------*/ #include #define CONCAT(a,b) a##b int main(void) {int arr[2] = { 10.. 2017. 3. 29.
[C] Macro, Charicter, Constant /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 29-03-2017Modified : 29-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Macro, Constant, Preprocessor ------------------------------------------------------------------------------------------*/ #include #define ADD(x,y) printf("x+y=%d\n", x+y).. 2017. 3. 29.
[C] Macro, comp Funtion /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 29-03-2017Modified : 29-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Macro, Constant, Preprocessor ------------------------------------------------------------------------------------------*/ #include #define SQUARE(x) x*xint square(int x); .. 2017. 3. 29.
[C] Macro, Constant, Preprocessor /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 29-03-2017Modified : 29-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Macro, Constant, Preprocessor ------------------------------------------------------------------------------------------*/ #include #define SQUARE(x) x*xint main(void) {int.. 2017. 3. 29.
[C] Macro, Constant, Preprocessor /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 29-03-2017Modified : 29-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Macro, Constant, Preprocessor ------------------------------------------------------------------------------------------*/ #include #define string "C++ Compatible C"#define.. 2017. 3. 29.
[C] Memory, Calloc, Malloc, Free, Array /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 29-03-2017Modified : 29-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Memory, Malloc, Free, Array, Calloc ------------------------------------------------------------------------------------------*/ #include #include int main() {int size, i;i.. 2017. 3. 29.
[C] Memory, Malloc, Free /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 29-03-2017Modified : 29-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Memory, Malloc, Free ------------------------------------------------------------------------------------------*/ #include #include int main(void) {int* a;a = (int*)malloc(.. 2017. 3. 29.
[C] Memory /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 29-03-2017Modified : 29-03-2017Language/ver : C in MSVS2015 Description : PracticeKEYWORD : Memory ------------------------------------------------------------------------------------------*/ #include void fct1(int);void fct2(int); int a = 10;int b = 20; int main(.. 2017. 3. 29.