⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compare1.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
字号:
// Build don't link:// Special g++ Options: -ansi -pedantic-errors -Wsign-compare// Copyright (C) 2001 Free Software Foundation, Inc.// Contributed by Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5/13/2001int foo(int x, int y, unsigned u){  /* A MAX_EXPR is non-negative if EITHER argument to the MAX_EXPR is     determined to be non-negative.  */  if (u < (x >? -1)) // WARNING - signed and unsigned    return x;  if (u < (x >? 10))    return x;  if ((10 >? x) < u)    return x;  if (u < (x >? (y ? (x==y) : 10)))    return x;  if (((y ? 10 : (x==y)) >? x) < u)    return x;  /* A MIN_EXPR is non-negative if BOTH arguments to the MIN_EXPR are     determined to be non-negative.  */  if (u < ((x?11:8) <? -1)) // WARNING - signed and unsigned    return x;  if (u < ((x?11:8) <? 10))    return x;  if ((10 <? (x?8:11)) < u)    return x;  if (u < ((x?11:(x==y)) <? 10))    return x;  if ((10 <? (x?(x==y):11)) < u)    return x;  return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -