ตัวอย่างการใช้สิทธิ 44 C
หัวข้อ: เรียนรู้การใช้การใช้งานภายนอก
การวิเคราะห์โครงการ: ไม่มี
รหัสที่มา:
// 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; }
เอาท์พุทตัวอย่างข้างต้นคือ
c 的值为 7