Rabu, 05 November 2008

The Basic Library of C Language

The basic Library in C Language is stdio.h, where std is standard, io is input output and .h is the extention of header library.

There are two basic function in these library it is printf() funtion and scanf() function.
- printf(); it is use to display the string, example to display "Hallo World" we can use this function it is: printf ("Hallo World"); //ended with semicolon
- scanf(); it is use to insert the data. The data stored use this function, example to store number 7 we can use this function it is: scanf("%d", &data_insert); //%d means the data we want to store have integers type, &data_insert means the data we stored it into a variable called data_insert.

Tidak ada komentar: