Abstract
Function is one of the most difficult chapter in programming subject. The difficulty is not only for students but also for academician to deliver the content since it requires of full understanding of the concept of function. Function is where we can break up programs into segments (Mohamad & Mydin , 2019), and according to Ian (2006) is a way of breaking problems down into smaller subproblems and Prinz et. al, (2002) defines function will helps to divide problem into smaller units. Function can be divided into two parts; 1) predefined functions; and 2) user defined functions. Predefined function is the function that already built in and user only need to call the function, but user defined function is the function need to be created by user. The user defined functions is the topic that harder to explain because it has many variable such as function type void or non-void, passing values either using; 1) parameters passing byValue or byRef; 2) global variable. Hence, the student always confuses where to type the input and output statement either in main function main() or user defined function udf().
Metadata
Item Type: | Article |
---|---|
Creators: | Creators Email / ID Num. Warris, Saiful Nizam saifulwar@uitm.edu.my Mohamed Yusoff, Syarifah Adilah syarifah.adilah@uitm.edu.my Kadar, Rozita rozita231@uitm.edu.my |
Contributors: | Contribution Name Email / ID Num. Advisor Hamat, Muniroh UNSPECIFIED Chief Editor Kadar, Rozita UNSPECIFIED |
Subjects: | Q Science > QA Mathematics Q Science > QA Mathematics > Programming languages (Electronic computers) Q Science > QA Mathematics > Programming languages (Electronic computers) > C (Computer program language). C++ |
Divisions: | Universiti Teknologi MARA, Pulau Pinang > Permatang Pauh Campus |
Journal or Publication Title: | Teaching and Learning in Higher Education (TLHE) |
ISSN: | 978-967-0841-86-1 |
Volume: | 1 |
Page Range: | pp. 73-74 |
Keywords: | Programming, global, Value |
Date: | June 2020 |
URI: | https://ir.uitm.edu.my/id/eprint/77972 |