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

📄 twoway.c

📁 c版本的
💻 C
字号:
                                        /* Chapter 8 - Program 3 */
main()
{
int pecans,apples;

   pecans = 100;
   apples = 101;
   printf("The starting values are %d %d\n",pecans,apples);

                           /* when we call "fixup"          */
   fixup(pecans,&apples);  /* we take the value of pecans   */
                           /* we take the address of apples */

   printf("The ending values are %d %d\n",pecans,apples);
}

fixup(nuts,fruit)             /* nuts is an integer value   */
int nuts,*fruit;              /* fruit points to an integer */
{
   printf("The values are %d %d\n",nuts,*fruit);
   nuts = 135;
   *fruit = 172;
   printf("The values are %d %d\n",nuts,*fruit);
}

⌨️ 快捷键说明

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