c program to compute Income tax and Net Salary for its employees. The company offers tax relief of Kshs. 650 for single employees and Kshs. 1,100 for married employees. The relief will be deducted from the Gross salary, to give the taxable income. This will be computed at the following rates: [10mks] Taxable Income Rate (%) <5000 0 5000-19999 6 20000-36999 9 37000 and above 16
1 1928Function calling procedures? and their differences? Why should one go for Call by Reference?
ADP,
1085Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
1280How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
1105
What is the use of bitwise operator?
What is meant by gets in c?
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
Lists the benefits of c programming language?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
#include
What is a pointer on a pointer in c programming language?
Is c is a procedural language?
Explain what is operator promotion?
Does sprintf put null character?
How do you use a 'Local Block'?
Explain what are the different file extensions involved when programming in c?
What is the use of f in c?
Can a variable be both constant and volatile?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this