Hi,
I got selected in one written exam for a software job my next round is on c programming...t hey will ask to write c programs.....th ey sent a sample question for me...its like
An Array named 'DATE_ARRAY' with 'n' elements is present in the
memory. Each element in the array is a structure representing the
'Date' information and its type definition is shown below:
Type def struct Date_st
{
int MM;
int DD;
int YYYY;
} Date;
Assume that the elements in DATE_ARRAY are sorted in ascending order
(for example date1 (03, 21, 1975) < date2 (03, 22, 1975)). Write a
'C' program that takes a date as its command-line argument (in the
form of a numeric string "MMDDYY") and uses the Binary search
algorithm to determine whether the input date exists DATE_ARRAY or not.
could u please write a c program for this.......and wher can i get programmes like this for preparation.... .
Thanks & Regards.
I got selected in one written exam for a software job my next round is on c programming...t hey will ask to write c programs.....th ey sent a sample question for me...its like
An Array named 'DATE_ARRAY' with 'n' elements is present in the
memory. Each element in the array is a structure representing the
'Date' information and its type definition is shown below:
Type def struct Date_st
{
int MM;
int DD;
int YYYY;
} Date;
Assume that the elements in DATE_ARRAY are sorted in ascending order
(for example date1 (03, 21, 1975) < date2 (03, 22, 1975)). Write a
'C' program that takes a date as its command-line argument (in the
form of a numeric string "MMDDYY") and uses the Binary search
algorithm to determine whether the input date exists DATE_ARRAY or not.
could u please write a c program for this.......and wher can i get programmes like this for preparation.... .
Thanks & Regards.
Comment