Find the middle node in the linked list??
(Note:Do not use for loop, count and count/2)
Answer Posted / vadivel
U mean without any looping statements r just for loop?????
It can be done in a single traversal using Hare n turtle
method as said above using a for or while loop.....
Without using looping statements d list can't be traversed..
Plz make the question clear.....
| Is This Answer Correct ? | 3 Yes | 10 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.
What is the use of ?
When can you use a pointer with a function?
while initialization of array why we use a[][2] why not a[2][]...?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
What is meant by initialization and how we initialize a variable?
What is output redirection?
What are the differences between Structures and Arrays?
in iso what are the common technological language?
What is sizeof in c?
In a switch statement, explain what will happen if a break statement is omitted?
Why we write conio h in c?
What is the difference between array_name and &array_name?
How we can insert comments in a c program?
Is c object oriented?