变量声明

#include <stdio.h>

// Variable declaration:
extern int a, b;
extern int c;
extern float f;

int main () {

   /* 变量定义: */
   int a, b;
   int c;
   float f;

   /* 变量初始化 */
   a = 10;
   b = 20;

   c = a + b;
   printf(value of c : %d \n, c);

   f = 70.0/3.0;
   printf(value of f : %f \n, f);

   return 0;
}

相关文章

(ns clojure.examples.hello (:gen-class)) ;; This progra...
// Clojure算术运算符 (ns clojure.examples.hello (:gen-c...
// Clojure变量 (ns clojure.examples.hello (:gen-class))...
// Clojure数据类型 ns clojure.examples.hello (:gen-clas...
// Clojure分隔符示例 (ns clojure.examples.hello (:gen-c...
// (ns clojure.examples.hello (:gen-class)) ;; This pr...