Ya i have well i needed it a bit urgently so was expecting some one to share a bit of code it cud save a lot of my time ...but still if anybody got any efficient bit of function i wud still appreciate ... @ first i thought it to be easy but slowly got a lot of corner cases to handle
Its been 8 hours now and you still have not started writing the code yet! All you have to do is get the two date/times as time_t object, subtract them. The result is the difference in seconds. From that you can easily convert to minutes, hours, days, years, decades or whatever you want.
To get the time_t object, first populate a struct tm structure with the date/time and call mktime(), which returns time_t.
The whole thing might has taken you an hour or so to complete and test. Instead, you have so far wasted 8 hours trying to get someone else to do it for you. Not very efficient use of your time.
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...