Computer Science, asked by gandlachandrika123, 4 months ago

"NI", "CA")
Write a code with function getFare(String Source,
String Destination) which take input as source
and destination stops(in the format containing
first 2 characters of Name of the Busstop) and
calculate and return travel fare
Example 1
Input Values
ca
n
ca​

Answers

Answered by keyboardavro
0

Answer:

It copies string pointed to by source into the destination . This function accepts two arguments of type pointer to char or array of characters and returns a pointer to the first string i.e destination . ... \n\n"); strcpy(ch_arr2, ch_arr1); // copy the contents of ch_arr1 to ch_arr2 printf("First string (ch_arr_1) = %s\n", ...

Explanation:

Similar questions