A C E G H
+B D F A I
------------
E F G H D
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
How do you determine if a string is a palindrome?
How can I invoke another program or command and trap its output?
Hai why 'c' is the middle language
# define x=1+4; main() { int x; printf("%d%d",x/2,x/4); }
Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +
what is meant by the "equivalence of pointers and arrays" in C?
How does selection sort work in c?
Explain the ternary tree?
How to avoid buffer overflow?
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.
What is the difference between abs() and fabs() functions?