摘要:
不用判断语句,求两个数的最大值我面试时的一道题,当时没有解决,现在总算是知道了,呵呵#include "stdio.h"int max(int x,int y) { int buf[2]={x,y}; unsigned int z; z=x-y; z = z>>31; return buf[z]; } void main(void){ int ma; ma=max(2,-1); pri... 阅读全文
posted @ 2009-11-30 16:36
MushRoom_lb
阅读(1248)
评论(5)
推荐(0)

浙公网安备 33010602011771号