Haiihaiii mentemen, kali ini aku bakalan membahas fungsi pada C++ simak baik baik yaaa!
Fungsi adalah sekumpulan pernyataan (statement) yang dapat menjalankan sebuah tugas tertentu. Apabila fungsi telah didefinisakan maka fungsi tersebut dapat digunakan berulang-ulang. Ada 2 tipe fungsi yaitu fungsi yang memiliki nilai balik dan fungsi uang tidak memiliki nilai balik(void).
contoh fungsi pada C++
Fungsi 1
Fungsi 2
Fungsi Parameter
Fungsi PassbyValue
Fungsi PassbyReference
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAFguJxTJdBFM2Pm-SAVd0FWWS4LP2JVD8s6X27E7ExYGuIb0XQjywQrEs9_-kNomz63nUkfQ7TcYo2TxvxGqzULSNY-U3qrBaZ8FTl95QtHYZl7uLmR4coH6-h3QLPrknDG0_4dWJipA/s1600/fungsi4hsl.png)
Semoga bermanfaat yaa, sampai ketemu di postingan selanjutnya.
.
ReplyDeleteI'm Абрам Александр a businessman who was able to revive his dying lumbering business through the help of a God sent lender known as Benjamin Lee the Loan Consultant. Am resident at Yekaterinburg Екатеринбург. Well are you trying to start a business, settle your debt, expand your existing one, need money to purchase supplies. Have you been having problems trying to secure a Good Credit Facility, I want you to know that Mr Benjamin will see you through. Is the right place for you to resolve all your financial problems because I am a living testimony and i can't just keep this to myself when others are looking for a way to be financially lifted.. I want you all to contact this God sent lender using the details as stated in order to be a partaker of this great opportunity Email: 247officedept@gmail.com Or WhatsApp/Text +1-989-394-3740.