Don't wanna be here? Send us removal request.
Text
Qualitative Estimates of Locality
Being able to look at code and get a qualitative sense of its locality is a key skill for a professional programmer.
0 notes
Quote
... 메모리의 낭비가 발생하더라도 int형 변수를 사용한다. ... 컴퓨터는 내부적으로 int형 데이터를 가장 빠르게 연산(처리)하기 때문이다. 레알?
열혈강의 C 프로그래밍 116p
0 notes
Text
sizeof val
sizeof(int) == sizeof val
http://codepad.org/RNg2coLc
5 notes
·
View notes
Text
float error
/* float_error.c */ #include <stdio.h> int main(void) { int i; float f = 0.0; for(i=0; i<100; i++) f += 0.1; printf("%f \n", f); return 0; }
output
10.000002
0 notes
Text
C/C++ 예약어 목록 (C/C++ keywords)
C and C++ keywords
auto break case char const continue default do
double else enum extern float for goto if
int long register return short signed sizeof static
struct switch typedef union unsigned void volatile while
http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8a.doc%2Flanguage%2Fref%2Fkeyw.htm
6 notes
·
View notes
Photo
연산자 우선순위(operator priority)
http://www.winapi.co.kr/clec/cpp1/5-4-1.htm
0 notes
Text
쉼표 연산자(comma operator)
comma 연산자는 원래 한 표현식(expression)이 있어야하는 곳에서 2개 이상 표현식을 쓰려고 할때 사용합니다. comma 연산자로 묶인 표현식들은 좌측 표현식부터 차례로 평가(evaluation) 후 마지막 가장 우측 표현식의 결과값이 return 됩니다.전체 표현식의 결과값이 됩니다.( 전웅님 충고 감사합니다.)
연산자 우선 순위에 따라 결과 값이 달라지므로 주의깊게 사용해야 합니다.
x = (y = 4, 5); 결과 x == 5, y == 4 x = y = 4, 5; 결과 x == 4, y == 4
3 notes
·
View notes
Text
online compiler
http://codepad.org
http://sourcelair.com
http://ideone.com
http://bellard.org/jslinux/ // !!
3 notes
·
View notes