Intel 면접 문제라고 하는 군요
진짜인지 아닌지는 모르겠지만 재밌는 문제인 것 같아 가져와봤습니다.
Find three ways to change one character in the following code so that the resulting
code will print exactly 20 minus signs
Remember: for each solution you can only change "one" character from this original code:
int i, n=20;
for(i =0 ; i < n ; i--)
printf("-");
'class CKnowledge > ....: Programming' 카테고리의 다른 글
| Intel 면접 문제 (0) | 2009/07/01 |
|---|---|
| strcpy, sscanf, sprintf 대신하여 안전한 프로그램 짜기 (0) | 2009/05/14 |
| sizeof 몇 가지 (0) | 2009/04/22 |
| CString의 TrimRight에 대한 착각 (0) | 2009/04/09 |
| C++에서 다음 두 코드의 차이는? (0) | 2009/04/03 |
| Google Data Python Library 시작하기 (0) | 2008/10/20 |
TAG 문제