Computer Science, asked by saranyashashmitha21, 8 months ago

Consider the following C function.
void convert(int n) {
if(n<0)
printf("%d",n);
else {
convert(n/2);
printf("%d",n%2);
}
}
Which one of the following will happen when
the function convert is called with any
positive integer n as argument?​

Answers

Answered by murthineedijansirani
0

Answer:

void convert(int n) {

if (n < 0)

printf(“ % d”, n);

else {

convert(n / 2);

printf(“ % d”, n % 2);

}

}

Answered by samarthvip2
0

see the pic and enjoy the answer

Attachments:
Similar questions