Karena Menulis Kita Bisa Menjadi Ingat Dengan Melihat Kita Bisa Menjadi Tahu Tapi Tanpa Mencoba Kita Tidak Bisa Mengingat Dan Mengetahuinya

Tuesday, June 14, 2016

Variables In C Language (=;=)



Variable is a symbol in a program that serves to represent a value / save certain values ​​that are dynamic , 
can change during program run. In the C programming language , 
to use a variable must declare it first so that the compiler recognizes it . 
The general form for declaring a variable in c language is  :

tipe_data variable_name ;
 
Example :
int a; / * Declare a variable of type integer * /
int b , c ; / * Declare variables b and c are integers * /
char u ; / * Declare a variable of type char * u /

In the example above ( first row ) , a variable declared with the variable of type integer that ( a)
 can only hold a value with an integer data type .
 Likewise, the variables b and c in the second row , 
which was declared by the integer, the two variables ( b and c ) 
will only store a value of type integer .

No comments:

Post a Comment