how to write a prog in c to convert decimal number into
binary by using recursen function,
Answer / madhavi
void decitobin(int n);
main()
{
int n;
printf("Enter an integer:");
scanf("%d",&n);
decitobin(n);
}
void decitobin(int n)
{
if(n>0)
{
decitobin(n/2);
printf("%d",n%2);
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
write a pgm to print 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is a pragma?
What is the maximum length of an identifier?
How can I insert or delete a line (or record) in the middle of a file?
Is it fine to write void main () or main () in c?
print the table 5 in loops
What are the 4 types of functions?
What is the difference between break and continue?
What's the total generic pointer type?