2. Write a function called hms_to_secs() that takes three int values—for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.
5 26858how does the C compiler interpret the following two statements p=p+x; q=q+y; a. p=p+x; q=q+y b. p=p+xq=q+y c. p=p+xq; q=q+y d. p=p+x/q=q+y
2 10858write a C and C++ programme to implement the A,bubble sort B,quick sort C,insertion sort D,sequential search E,binary search
1 61811. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)
12 76357increment operateor (++)and decrament(--)
#include
Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.
1 12267Post New TCS C Interview Questions
Can you explain logistic regression?
What is the difference between the debug class and trace class? Documentation looks the same.
What to do if getting missing or corrupted file messages?
Explain something about attribute?
What do you understand by functional dependency and transitive dependency in dbms?
Explain different way of using thread?
How to sort intermediate output based on values in MapReduce?
Explain the life cycle of jdbc.
What does associations, aggregation and composition in a class diagram mean?
What are the key use cases for vora? : hana vora
What are the data synchronize services in azure?
How to select cable the size, what is the parameters use and what is the formulas use for this cable size calculation?
How Large A Modulus (key) Should Be Used In Rsa?
Define Virtual folder?
How do I set a primary key in access 2007?