Answer:
- All variable names must begin with a letter of the alphabet or an. underscore( _ ).
-After the first initial letter, variable names can also contain letters and numbers.
-Uppercase characters are distinct from lowercase characters.
-You cannot use a C++ keyword as a variable name.
I don’t really understand what you are trying to ask. Try posting a picture along with your question
Answer:
This is an infinite loop.
Explanation:
The while loop while never end since the last statement inside the while loop will continue to decrement the value of num by 1 and the condition num < 9 will always be true.
So either change the condition of the while loop like: num > -9
or start incrementing the variable num in the last statement of the while loop like:
num = num + 1
Note: Don't make both changes at the same time.
Visit: gotit-pro.com for fastest, top-notch and impeccable homework and exams help in a range of subjects and ace your academics.
Thanks and Best Regards: Your Friendly Study Co-Pilot
This code attempts to fuse two strings together. So,
fuse("Apple", "Banana")
would return "ABpapnlaen a"
However, there are a couple of things wrong with this code:
- The for loop is incomplete (probably a copy paste error)
- It is unclear from the code if the array jawaban will overflow if kata1 and kata2 are large (it probably will)
- Biggest problem: the jawaban array is declared on the stack, which means it will be cleaned up when the function returns. So the caller of this function will reference unallocated memory! This is a huge bug!!
<span>A method in a class that modifies information about an object is called a <u>mutator</u> method.</span>