U E D R , A S I H C RSS

새싹교실/2011/學高/5회차



1.

  • 결과값

#include<stdio.h>

int main()
{
 int a=1,b=2,c=3,d=4,e=5;
 printf("%d\n",(++a)+(b++)*(c+d)%e);
 return 0;
}

  • bitwise operation
    • 0110 0101 ^ 1001 1010
    • 1010 1101 & 1010 1010
    • 1010 1111 | 1010 1001

  • ,

1.1.


1. 6

2. 1111 1111
1010 1000
1010 1111

2. 2011 4 4

2.1. 님:

2.1.1. 가르(fact)

  • redirection: input: <, output: >
  • assignment operator: ==
  • arithmetic operator( 모르면 교로 돌)
  • increment/decrement, postfix/prefix: 모르면 곧바로 다. 는데 깨(물론 만)
  • shorthand operator (arithmetic operator + assignment operator)
  • operator precedence/associativity
  • bitwise operator

2.1.2. 기 반 (feeling/finds)

  • 다. 다 나가다.


2.2. : 김

2.2.1. (fact)

operator()다.
-expression과 statements
-assignment operater (=) 같다는 미가 라는것.
-increment operator ++i는 expression 되기 , i++는 1
-decrement operator는 만 1
-operator precedence() << 이건 초등학교때 배운거.
가된 내 %(모?)는 *,/ 가 같다?
-bitwise는데 다 모르겠 ㅜㅜ

2.2.2. 기 반 및 고 (feeling/finds)

렇게 복 것 같다..
로는 더 다 ~
그리고 로 가르 ㅋㅋㅋ

2.2.3.

  • 결과값

#include<stdio.h>

int main()
{
 int a=1,b=2,c=3,d=4,e=5;
 printf("%d\n",(++a)+(b++)*(c+d)%e);
 return 0;
}

2+2*7%5
2+4=6

  • bitwise operation
    • 0110 0101 ^ 1001 1010
    • 1010 1101 & 1010 1010
    • 1010 1111 | 1010 1001

1. 1111 1111
2. 1010 1000
3. 1010 1111

2.3. : 김



2.3.1. (fact)

i++ ++i는 단독때 동
다른 것과 같 때 (?) i++는 끝난 1는것
++i는 1는것.
%는 나고 나머.
/
+
-
*
다. ()

a=b 는 b대 a로 (?)... 그 뜻.
같다를 다면 == 것.



2.3.2. 기 반 및 고 (feeling/finds)

난다 ㅜㅜ
  • 그러까 복 ㅋㅋㅋ -

2.3.3.

  • 결과값

#include<stdio.h>

int main()
{
 int a=1,b=2,c=3,d=4,e=5;
 printf("%d\n",(++a)+(b++)*(c+d)%e);
 return 0;
}

=> 답 : 2+2*7%5 2+4 므로 6..

  • bitwise operation
    • 0110 0101 ^ 1001 1010
    • 1010 1101 & 1010 1010
    • 1010 1111 | 1010 1001
=>답 : 1111 1111

2.4. : 김

2.4.1. (fact)

봉봉교때 뭔
i++ ++i를 ㅋㅋㅋㅋ
i++ 딴 보 i값만 , 그 값 1 .
%는 mod기 미.
나머 + - * / 과 같미 !
그리고 =
x=y x다 y를 고, 같다는 x==y
x=x+3 보다는 x+=3렇게 ? 가? 렇게가 더 많 다는(?)것.
데 . .ㅠㅠ.ㅠ.ㅠ.

2.4.2. 기 반 및 고 (feeling/finds)

......
두근두근되 .
끝나고 다 c 공부 ,
.....

2.4.3.

결과값 : 면 2+2*7%5
14 = 4 ( mod 5 )
따라 6

bitwse operation 값 :
1111 1111 ( XOR )
1010 1000 ( AND )
1010 1111 ( OR )

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:42
Processing time 0.0205 sec