Declaring reserves memory for a variable without assigning a value, while initializing declares and assigns a value. Functions contain reusable blocks of code that can be called throughout a program. Arguments are values passed to function parameters, which are placeholders in the function definition. Objects are instances of classes like cout and cin which come from standard libraries like iostream. Void functions do not return values and can be used to avoid repeating code. Data structures include arrays, which hold a fixed number of values, and linked lists, where each element is separate.
Declaring reserves memory for a variable without assigning a value, while initializing declares and assigns a value. Functions contain reusable blocks of code that can be called throughout a program. Arguments are values passed to function parameters, which are placeholders in the function definition. Objects are instances of classes like cout and cin which come from standard libraries like iostream. Void functions do not return values and can be used to avoid repeating code. Data structures include arrays, which hold a fixed number of values, and linked lists, where each element is separate.
Declaring reserves memory for a variable without assigning a value, while initializing declares and assigns a value. Functions contain reusable blocks of code that can be called throughout a program. Arguments are values passed to function parameters, which are placeholders in the function definition. Objects are instances of classes like cout and cin which come from standard libraries like iostream. Void functions do not return values and can be used to avoid repeating code. Data structures include arrays, which hold a fixed number of values, and linked lists, where each element is separate.
Declaring reserves memory for a variable without assigning a value, while initializing declares and assigns a value. Functions contain reusable blocks of code that can be called throughout a program. Arguments are values passed to function parameters, which are placeholders in the function definition. Objects are instances of classes like cout and cin which come from standard libraries like iostream. Void functions do not return values and can be used to avoid repeating code. Data structures include arrays, which hold a fixed number of values, and linked lists, where each element is separate.
Declaring – is like int x, wala ka pang binibigay na value
Initializing – is like int x = 3; nag declare ka plus nag assign ka ng value
Function – kung may codes ka na need maexecute paulit ulit throughout the program, pwede ka nalang gumawa ng sariling function para kung need mong iedit ung code, sa function ka nalang eedit tas tatawagin mo nalang ung function, usually function is defined first before the main function
Method – The code or laman ng isang function
Argument – the values na ilalagay para sa parameters ng function like multiply(2, 3)
Parameter – basically yung need mong ipass sa function e.g. multiply(int x, int y)
Object – like the cookies where class is the cookie cutter, like cout and cin, objects sila from ostream
Classes in standard library – where objects come from like iostream gives cout and cin
Void function - functions that don't return values, can be used to not have to repeat cout and cin if needed a lot of times
Data structures – ways how to structure data like arrays, linked list and etc.
Arrays - holds fixed number of values of a certain datatype
Index – the position number of each value in an array
Linked list – data structure where each element is seperate