## Skill Subsist Impulse Ltd Interview Question for Tech Leads

Country: India
Interview Type: Written Test

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

``int bigger = ((a-b)>>31)?b:a;``

Explanation :- if b>a then a-b will be negative, hence leftmost digit will be 1, if so, b is bigger else a.

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

if(a/b) printf("a is big") else printf("b is big")

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

#include<stdio.h>
int a,b,n,c;
main()
{
printf("enter two no negative numbers\n");
scanf("%d%d",&a,&b);
while(a && b)
{
a--;
b--;
c++;
}
n = c + a +b;
printf("smallest number is %d\n",c);
printf("biggest number is %d\n",n);
}

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

``and``

#include<stdio.h>
int a,b,n,c;
main()
{
printf("enter two no negative numbers\n");
scanf("%d%d",&a,&b);
while(a && b)
{
a--;
b--;
c++;
}
n = c + a +b;
printf("smallest number is %d\n",c);
printf("biggest number is %d\n",n);
}

``and``

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

#include<stdio.h>
int a,b,n,c;
main()
{
printf("enter two no negative numbers\n");
scanf("%d%d",&a,&b);
while(a && b)
{
a--;
b--;
c++;
}
n = c + a +b;
printf("smallest number is %d\n",c);
printf("biggest number is %d\n",n);
}

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.