2.2. return ¶
- 내 값 반기 는 드다.
#include <stdio.h>
int f(){ // 5를 반는 f 다.
return 5;
}
main(){
printf("%d", f());
}
2.2.1. ¶
- 목 : f(x)=x² 기능 는 로그램 .
int f(int x){
return x^2; /// wrong
}
- x^2 는 x 2를 xor 라는 다.
- C x²를 기 는 x*x 라고 다.
int f(int x){
return x*x;
}










