11 2009 档案

摘要: 不用判断语句,求两个数的最大值我面试时的一道题,当时没有解决,现在总算是知道了,呵呵#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 阅读(640) | 评论 (4) 编辑