C Exercise Example 44
100 cases of classic C language
Topic: Learn to use external usage.
Program Analysis: None.
Source Code:
// Created by www.w3big.com on 15/11/9. // Copyright © 2015年 本教程. All rights reserved. // #include <stdio.h> int a,b,c; void add() { int a; a=3; c=a+b; } int main() { a=b=4; add(); printf("c 的值为 %d\n",c); return 0; }
The above example output is:
c 的值为 7