## צבאד Interview Question for Software Engineers

Country: Isreal
Interview Type: In-Person

Comment hidden because of low score. Click to expand.
0
of 0 vote

Pass the result variable to the function?
like this

``````void mul(int *a, int *b, int *ans)
{
*ans = *a * *b;
}

int main(int argc, char const *argv[])
{
int a = 5;
int b = 4;
int ans;
mul(&a, &b, &ans);
printf("%d * %d = %d\n", a, b, ans);
return 0;
}``````

Comment hidden because of low score. Click to expand.
0
of 0 vote

def mul(a,b):
print(a*b)
return
n1=int(input(" enter the value of n1: "))
n2=int(input(" enter the value of n2 "))
mul(n1,n2)

Comment hidden because of low score. Click to expand.
0
of 0 vote

# multiplication without using return in python
def mul(a,b):
print(a*b)
return
n1=int(input("Enter the value of n1: "))
n2=int(input("Enter the value of n2: "))
mul(n1,n2)

Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

### Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

### Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.