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
Order the steps for using the Rules Wizard to create an email rule.
Serhud [2]

Answer:

select the home tab and click rules button

select manage rules and alerts

click new rule and select a template

edit a description of the rule by adding values

make any exceptions and name the rule

Explanation:

just took it on edg

6 0
3 years ago
Rafi is developing an application to send urgent information about global health crises over the Internet to hospitals. He is wo
Liono4ka [1.6K]
Have the packets virtual
6 0
3 years ago
Write a program in c language to generate following series :
DedPeter [7]

In this exercise we have to have knowledge in computational language in C to write the requested code.

The code is found in the attached image.

We can write the code in a simpler way like:

<em>#include<stdio.h></em>

<em>#include<conio.h></em>

<em>int main()</em>

<em>{</em>

<em>    int N, i;</em>

<em>    printf("Enter the value of N (limit): ");</em>

<em>    scanf("%d", &N);</em>

<em>    printf("\n");</em>

<em>    for(i=1; i<=N; i++)</em>

<em>    {</em>

<em>        if(i==N)</em>

<em>            printf("%d", i);</em>

<em>        else</em>

<em>            printf("%d,", i);</em>

<em>    }</em>

<em>    getch();</em>

<em>    return 0;</em>

<em>}</em>

See more about C language at brainly.com/question/19705654

7 0
3 years ago
Read 2 more answers
A snail goes up A feet during the day and falls B feet at night. How long does it take him to go up H feet? Given three integer
Ann [662]

Answer:

H=(A*D)-(B*(D-1))

H = A*D- B*D+B

H-B = (A-B)*D

D= (H-B)/(A-B)

Python 3 code

import math

H=int(input('Enter Height: '))

up=int(input('Enter Number of Feet Up: '))

down=int(input('Enter Number of Feet Down: '))

D=(H-down)/(up-down)

print(math.ceil(D),' Days'

Explanation:

The output of the Program is given in the attached file.

8 0
3 years ago
Complete the statement below using the correct term.
Tpy6a [65]

Answer:

for your digital marketing degree you would need at least a merit in your gcse's for computer science or media production or with a bachelor’s degree in computer science or information technology

6 0
3 years ago
Other questions:
  • Unlike the climate of the other islands of Hawaii, ________Kona contains 54 different temperate zones.
    15·1 answer
  • In computer terminology, what is a network?
    10·1 answer
  • Whenever I go onto Google Chrome, the words are in Spanish! How can I make the words be back in English again? Please let me kno
    7·1 answer
  • In Windows Server 2016, what must be running to allow you to manage a server remotely with PowerShell?
    14·1 answer
  • You have just created a one-way incoming trust in your domain for an external domain used by a partner company to allow your dom
    11·1 answer
  • Ex. Q about the crazy effects of complements/substitutes on a wide range of goods:
    7·1 answer
  • When both inputs of a J-K edge-triggered FF are high and the clock cycles, the output will ________.
    11·1 answer
  • Match each definition to the correct type of media.
    13·2 answers
  • Classify the characteristics as abstract classes or interfaces.
    6·1 answer
  • What are the specifications of mine shaft head gear​
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!