Question: I AM REPORTING EACH WRONG ANSWER TO SUPPORT WHICH WILL LEAD TO YOUR ACCOUNT BEING CLOSED. IF YOU DONT KNOW THE ANSWER DONT ANSWER. TEST

I AM REPORTING EACH WRONG ANSWER TO SUPPORT WHICH WILL LEAD TO YOUR ACCOUNT BEING CLOSED.

IF YOU DONT KNOW THE ANSWER DONT ANSWER.

TEST YOUR PROGRAM BEFORE ANSWERING AND SEND A PRINT SCREEN ALSO.

In C programming...Write a recursive function which converts a number from decimal to binary.

So if I input 5 the output should be 101

If I input 0 the output should be 0.

prototype

void dec_to_binary(int n);

Main method

int main()

{

int nr; scanf("%d", &nr); dec_to_binary(nr);

}

MAKE SURE THE PROGRAM WORKS ALSO IF THE NUMBER IS 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!