Posted by : Unknown Saturday 9 March 2013




Bentuk dasar bahasa C secara umum :
  1. Praprosessor
  2. Prototipe Fungsi
  3. Variabel
  4. Fungsi
/* Bentuk Program C */ ß---- bentuk komentar
#include <stdio.h> ß--- praprosessor
float jumlah(float x, float y); ß--- prototipe fungsi
main() ß---- fungsi
{
int a = 6;
int b = 3; ß--- variabel
float c;
.
.
}
float jumlah(float x,float y); ß--- fungsi

Pada hakekatnya program C merupakan susunan dari beberapa fungsi. Program yang paling sederhana harus memiliki sebuah fungsi.

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Popular Post

Powered by Blogger.

- Copyright © SEMUU -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -