1.

ex.h

#pragma once

int add(const int a, const int b);


main.c

#include <stdio.h>

#include "ex.h"


int main(void)

{

printf("%d",add(5,4));

return 0;

}


2.

main.c

#include <stdio.h>


int add(const int a);


int main(void)

{

printf("%d", add(5,4));

return 0;

}


3.

main.c

#include <stdio.h>


int main(void)

{

printf("%d", add(5,4));

return 0;

}




๊ฐ๊ฐ ๋ฌด์Šจ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜์˜ค๋Š”์ง€ ๋งž์ถฐ๋ณด์„ธ์šฉ

๋ฌธ์ œ๋‹น ๋‚˜์˜ค๋Š” ์†Œ์Šค์ฝ”๋“œ ๋ง๊ณ ๋Š” ๋‹ค๋ฅธ ์†Œ์Šค์ฝ”๋“œ๋Š” ์—†์Šต๋‹ˆ๋‹ค.

๊ทธ ๋‹ต์ด ๋‚˜์˜ค๋Š” ์ด์œ ๋„ ๋ง์”€ํ•ด์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.


์•„๋ž˜ ๊ฐ๊ด€์‹์—์„œ ์ •๋‹ต์„ ๊ณจ๋ผ์ฃผ์„ธ์š”.


1. ์ปดํŒŒ์ผ ์˜ค๋ฅ˜

2. ๋ง์ปค ์˜ค๋ฅ˜

3. ์ž˜ ๋™์ž‘ํ•˜๋Š”๋ฐ ?