how to convert binary to decimal and decimal to binary in C
lanaguage
Answer Posted / fazlur rahaman naik
u can use bitwise operators and some logical thinking.
| Is This Answer Correct ? | 26 Yes | 15 No |
Post New Answer View All Answers
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
Write a program to swap two numbers without using third variable?
Why shouldn’t I start variable names with underscores?
Is array a primitive data type in c?
What is ponter?
What is zero based addressing?
When is a null pointer used?
Are the expressions * ptr ++ and ++ * ptr same?
What is the difference between the expression “++a” and “a++”?
Explain how can you restore a redirected standard stream?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
main() { printf("hello"); fork(); }
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is modeling?
What is break statement?