1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
attashe74 [19]
3 years ago
15

Apakah ada yang bisa menjelaskan potongan source code ini?

Computers and Technology
1 answer:
GarryVolchara [31]3 years ago
6 0

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!!

You might be interested in
Given the three side lengths, how can you tell if a triangle<br>is a right triangle?​
Tatiana [17]
<h3>Sample Response from Edge 2020:</h3>

Square all side lengths. If the longest side length squared is equal to the sum of the squares of the other two side lengths, then it is a right triangle.

8 0
3 years ago
To determine what to study one Should first
KATRIN_1 [288]
D none of these answers
7 0
2 years ago
Convert octal number 2470 to decimal number
Vikki [24]
In decimal it is:
0*8^0 + 7*8^1 + 4*8^2 + 2*8^3 = 1336

Basically adding up the place values.
3 0
3 years ago
Read 2 more answers
How do you stop getting emails from brainly saying "sarah from brainly has answered your question"
Alina [70]

Answer:

One best way to prevent from getting some emails from Brainly that are a bit annoying when you get there notifications from there, here are some ways you can get rid of those notifications below;

At the More options icon you can press it and if you see the word unsubscribe you can press it. The picture above shows a part of the instruction. This more options icon is :

At the More options icon you can also press block and you will no longer receive a notification from this app. thats the best i can do Explanation:

3 0
2 years ago
What is the smallest amount of information called?
aksik [14]

Answer:

Byte

Explanation:

5 0
4 years ago
Read 2 more answers
Other questions:
  • List of programming languages and their typing
    5·2 answers
  • What is a series of instructions or commands that a computer follows used to create software
    9·1 answer
  • How to create a distribution list in outlook?
    7·1 answer
  • What do you need to do before you can sort and filter data in a data base?
    12·1 answer
  • In client server network, there is no central server //// true or false​
    8·1 answer
  • What will the declaration below do to its target?
    9·1 answer
  • Public class Square extends Shape{
    13·1 answer
  • Anyone have an answer for 4.9 lesson code practice
    9·1 answer
  • How do entrepreneurs traditionally use computers? check all of the boxes that apply.​
    13·2 answers
  • AYUDAAA ESPARA HOYYY
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!