null-pointer-1.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 21 行
C
21 行
/* PR c/13382 *//* Origin: Richard Hutchinson <richard.hutchinson@asa.co.uk> *//* Verify that the null initializer is converted to the right pointer type. *//* { dg-do compile } *//* { dg-options "-O" } */struct t{ int aMember;};struct t *const aPointer = 0;void foo(){ int anInt = (aPointer == 0) ? 0 : aPointer->aMember;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?