내는 C 문.
C 를 *대* 배면 문 .
** : 말 냥 보 바란.
※ 면 , 면 런 를 .
1.
-
.
-
. 메 못. -yahar
. -민
C 러 따 메는 ;;; 러는 return int warnning 내 ;; -
2.
-
. 린는 %f %d 바뀌면 더 .-민
signed int a b를 더면 (65535/2) 데 - . (-65536/2)+((30000+30000)-(65536/2-1)) <- 제대로 설명을 못하겠다;;; -
-
3.
-
. 릭 는 러 &a 만 변 는(;;)-민
. 문 b=a; . const char * char * 대 . 러 러. -
-
4.
-
. f s. -민
. atof float변 만, atof 는 더를 문 int return. , num 123 . ANSI C99는 면 변. -
-
5.
-
. 0 는 부 린 는. -민
. 0 면 8 . 0x <- 16진수 -
-
6.
-
. ss[] "문"란 는 isdigit . (므.) isdigit 면 unsigned char 면 . 본 char signed. -
-
7.
-
. 문 문는 마 돼 는. -민
. , 문 리. -
-
8.
-
. 만 . -민
. 만 . -
-
9.
-
. -민
. NUM 2번 define . define 200 리. -
-
10.
-
. -민
. static C++ private . 만 는 . -
-
11.
-
. -민
. 문 return int 바뀐. return 러 는 . -
-
12.
-
-
100번 만 내.
11번 .
C 를 *대* 배면 문 .
** : 말 냥 보 바란.
~cpp Spec . 16Bit Windows ANSI C를 는 Compiler (C90)
~cpp
#include <stdio.h>
main(){
int i;
for(i=0; i<10; i++){ // 딴 : {는 for문 뒤 는 . -_-. 내리는 말 .(독 .)
printf("%d", i);
}
}
Note:
-
.
-
러 밍 . C90는 . 밍 더, 램 따 밍 는 .
, . -yuhar
-
, . -yuhar
~cpp
#include <stdio.h>
main(){
int a, b;
double c;
a = 30000;
b = 30000;
c = a + b;
printf("%f", c);
}
Note:
-
. 린는 %f %d 바뀌면 더 .-민
signed int a b를 더면 (65535/2) 데 - . (-65536/2)+((30000+30000)-(65536/2-1)) <- 제대로 설명을 못하겠다;;; -
-
~cpp
#include <stdio.h>
main(){
const char *a;
char *b, msg[]="test code";
a = msg;
b = a;
puts(msg);
puts(msg);
}
Note:
-
. 릭 는 러 &a 만 변 는(;;)-민
. 문 b=a; . const char * char * 대 . 러 러. -
-
~cpp
// 는 대 며, .
#include <stdio.h>
main(){
float num;
char data[]="123.12";
num = atof(data);
printf("%f", num);
}
Note:
-
. f s. -민
. atof float변 만, atof 는 더를 문 int return. , num 123 . ANSI C99는 면 변. -
-
~cpp
main(){
int a, b, c;
a = 0010;
b = 0200;
c = 2000;
printf("a=%d b=%d c=%dn", a, b, c);
}
Note:
-
. 0 는 부 린 는. -민
. 0 면 8 . 0x <- 16진수 -
-
~cpp
#include <stdio.h>
#include <ctype.h>
main(){
char ss[] = "A2 문";
int i;
puts(ss);
for(i=0; ss[i]; i++){
printf("i=%d %4x(%4d) ", i, ss[i], ss[i]);
if(isdigit(ss[i])) puts("");
else puts(" 문");
}
}
Note:
-
. ss[] "문"란 는 isdigit . (므.) isdigit 면 unsigned char 면 . 본 char signed. -
-
~cpp
#include <stdio.h>
main(){
int i;
while(scanf("%d", &i), i)
printf("%d", i);
}
Note:
-
. 문 문는 마 돼 는. -민
. , 문 리. -
-
~cpp
#include <stdio.h>
main(){
char *p;
gets(p);
puts(p);
}
Note:
-
. 만 . -민
. 만 . -
-
~cpp
// main.h
#define NUM 100
struct a {
int num1;
int num2;
};
// main.c
#include "main.h"
#define NUM 200
main(){
struct a test;
test.num1 = 100;
test.num2 = 200;
printf("%d", test.num1+test.num2);
}
Note:
-
. -민
. NUM 2번 define . define 200 리. -
-
~cpp
// linking
//main1.c
static int a = 100;
int mul(int num)
{
printf("a = %d", a);
return num*num;
}
//main2.c
main(){
exturn int a;
printf("a = %d");
printf("%d", mul(100));
}
Note:
-
. -민
. static C++ private . 만 는 . -
-
~cpp
// linking
// 1.c
main(){
double a, b;
a = 1234.1234;
b = 123.123;
printf("%f", mul(a, b));
}
// 2.c
double mul(double a, double b){
return a*b;
}
Note:
-
. -민
. 문 return int 바뀐. return 러 는 . -
-
~cpp
main(){
Note:
-
-
11번 .










데 보 문 --
-