프로그래밍/C

C - Printf의 Default Argument Promotions

꿈꾸는 사람_Anthony 2021. 4. 3. 15:46
반응형

C : 왜 교수님들은 double 출력에 %f를 사용할까? :: F.R.I.D.A.Y. (tistory.com)

 

C : 왜 교수님들은 double 출력에 %f를 사용할까?

 대학 교수님들이 학생들에게 C를 가르칠 때 종종 double을 출력할 때 %lf가 아니라 %f를 사용하는 교수님들이 계신다.  대학 들어와서 교수님들이 왜 double을 계속 %f로 출력할까 생각을 해봤는데

pang2h.tistory.com

기글 하드웨어 소프트 포럼 - [뻘글] 헷갈리기 쉬운 C언어 오개념 %f, %lf (gigglehd.com)

 

기글 하드웨어 소프트 포럼 - [뻘글] 헷갈리기 쉬운 C언어 오개념 %f, %lf

댓글의 닉넴과 레벨은 가립니다. %f와 %lf 얘기가 나오는데 본래 scanf에는 2개가 존재했지만, printf는 1개가 존재하다가 C언어 99년도 표준(C99)에서 %lf가 추가 됐습니다. 사실 printf에서는 %f와 %lf는

gigglehd.com

c - C90 doesn't allow %lf use in printf, why? - Stack Overflow

 

C90 doesn't allow %lf use in printf, why?

I'm a beginner programming student, just wanted to learn the reason behind this. When I use this code: #include int main() { double pi = 3.1415926535897932; printf("%lf",pi); r...

stackoverflow.com

Default argument promotions in C function calls - Stack Overflow

 

Default argument promotions in C function calls

Setup I have a few questions about the default argument promotions when calling a function in C. Here's section 6.5.2.2 "Function calls" Paragraphs 6, 7, and 8 from the C99 standard (pdf) (emphasis

stackoverflow.com

Search Keyword : Default arugment promotions.

Search Keyword : c99 %lf

반응형