size_t 는 implementation 하는 방식에 따라서 unsigned char, unsigned short, unsigned int, unsighed log, unsigned long long이 될 수 있다. 32bit system에서 size_t는 32bit이고 64bit system에서는 64bit이다

 

https://stackoverflow.com/questions/19732319/difference-between-size-t-and-unsigned-int

 

Difference between size_t and unsigned int?

I am so confused about size_t. I have searched on the internet and everywhere mentioned that size_t is an unsigned type so, it can represent only non-negative values. My first question is: if it i...

stackoverflow.com

https://code4human.tistory.com/119

 

[C언어] 데이터 타입 비교 - int, unsigned int, size_t

int 32bit 컴퓨터 기준으로 정수가 32bit (4byte) 크기라고 가정한다면 int 자료형은 2의 32제곱의 값(4,294,967,296)을 표현할 수 있다. 음수, 0, 양수를 포함하여 최소 -2,147,483,648에서 최대 2,147,483,647까..

code4human.tistory.com

 

%[^\n]%*c

enter를 치기 전까지 input에 들어가는 모든 character, space를 나타낸다

https://www.quora.com/What-does-scanf-n-c-name-mean

 

What does scanf ("% [^\n] %*c",name) mean?

Answer (1 of 4): In short, the statement scanf(“%[^\n]%*c”,name); means that all the characters entered as the input, including the spaces, until we hit the enter button are stored in the variable, name; provided we allocate sufficient memory for the v

www.quora.com

 

+ Recent posts