C言語なら俺に聞け(入門編)Part 61
at TECH
62:デフォルトの名無しさん
10/03/07 11:43:04
>>61
このホワイトボードプログラミングのところ:
http://japan.zdnet.com/sp/feature/07tenthings/story/0,3800082984,20409456-2,00.htm
一応、こんな感じで(^^
int *
reverse(int ary[])
{
int i = 0;
int j = SIZE - 1;
int tmp;
loop:
if (i >= j) goto end;
tmp = ary[i];
ary[i++] = ary[j];
ary[j--] = tmp;
goto loop;
end:
return ary;
}
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5499日前に更新/110 KB
担当:undef