Catatan Minggu 2

type data adalah untuk memesan tempat memori dan membatasi operasi kerja.

void tukar(int &a; int &b){ //prosedur ber parameter
int temp;
temp = a;
a=b;
b=temp;
}
tukar(a,b);

Template<class T> // Template
void tukar (T&a,T&b){
T temp;
temp = a;
a = b;
b=temp;
} tukar(a,b);

Share this:

ABOUT THE AUTHOR

Hello We are OddThemes, Our name came from the fact that we are UNIQUE. We specialize in designing premium looking fully customizable highly responsive blogger templates. We at OddThemes do carry a philosophy that: Nothing Is Impossible

0 komentar:

Posting Komentar