본문 바로가기
[IT] C언어 입문(4) Operators, 연산자 - scanf, 산술연산자, 관계연산자, 증감연산자, 대입연산자, 동등연산자 등 □ 기본연산자 * scanf - Analogous to printf, but used for input - scanf is passed a list arguments, control_string and other arguments - other arguments : addresses - ex) scanf("%d", &x); => &x : the address of x, The format %d is matched with &x - When reading numbers, it skips white space (blanks, newlines, and tabs) but when reading in a character white space is not skipped. c : Character d : Decim.. 2021. 8. 21.
[IT] C언어 입문(3) Data types, 데이터 타입(자료형) □ data types * Suffixes(접미사) for Data Type : int - int long, unsigned long - U or u : unsigned, ex) 25U, 0x32u - L or l : long, ex) 37L, 0x27L - UL or ul : unsigned long, 56uL, 234UL * Floating types - Variables of this type hold real values - float : 4bytes, 6 decimal places - double : 8bytes, 15 decimal places - long double : 12bytes, the compiler may provide more storage than double * Suffixe.. 2021. 8. 20.
[IT] C언어 입문(2) Variables - 변수, 대입연산자, 구문규칙, 데이터타입 등 □ Variables and data type * Computing - By human : Needs a pencil, a piece of paper Following a sequence of computing steps(procedural) Recoding the intermediate results on the paper(imperative) - C is an imperative and procedural language : Specifies explicit manipulation of the state of the computer system (imperative) Specifies an explicit sequence of steps to perform (procedural) * Variables.. 2021. 8. 17.
[IT] C언어 입문(1) Introduction - C언어의 역사와 기본 개념 □ The basics of C Programming Language * Programming Languages - Communication method between human and computers - Low-level programming languages : Assembly, Machine-oriented - High-level programming languages : C, Java, Basic, Pascal, Human-oriented * History of C - 1972 : Dennis Ritchie designed C, PDP-11 computer, AT&T Bell Lab - 1973 : Most of the Unix kernel was rewritten in C (예전에는 Assem.. 2021. 8. 16.
[IT] 데이터통신 - 이더넷(Ethernet) 이란 무엇인가? (IEEE 802.3 Standard) 1. 이더넷이란 무엇인가 가. 이더넷의 역사 이더넷(Ethernet)은 1973년 미국의 제록스 PARC(Palo Alto Research Center)에서 로버트 멧칼프(Robert Metcalfe)에 의해 개발되었다. 이후 1980년에 DEC, 인텔, 제록스 사에 의해 처음으로 "The Ethernet, A Local Area Network. Data Link Layer and Physical Layer Specifications, Version 1.0" 표준이 정립됐다. 1980년대, IEEE는 LAN 기술 표준화를 위한 802 프로젝트를 시작하였고, 이더넷은 1983년에 IEEE 802.3으로 표준화되었다. 초기 이더넷은 10Mbps의 전송속도를 기준으로 설계되었으나 토큰 링, 토큰 버스, FDD.. 2021. 7. 26.