Write and run a C program that performs the following: o Create an arrays of charecters with of size 4. o prompts the us
Posted: Thu May 26, 2022 9:26 am
Write and run a C program that performs the following: o Create an arrays of charecters with of size 4. o prompts the user to enter strings and store it in the character array. o Passes the string to a recursive user defined function named charPermu that takes an input array of type char*, start number, and size of an array.The function should print all permutations of a given string. o Call the function from inside the main. Sample run Please enter the string : abcd Pointer Generate permutations of a given string : The permutations of the string are : abcd abdc acbd acdb adcb adbc bacd bade bead beda bdc a bdac cbad cbda cabd cadb cdab cdba dbca dbac dcba dcab dacb dabc