How do I reverse variable text using reverse() and assign the result to a new variable char*? Thanks.Code:#include <stdio.h> #include <string.h> char* reverse(char* a) { int temp, x, y = strlen(a) - 1; for ( x = 0; x < y; x++, y-- ) temp = a[x], a[x] = a[y], a[y] = temp; return a; } int main() { char *text = "hello world";