What will be the output of the following code snippet? #incl…
What will be the output of the following code snippet? #include void doSomething(char *str) { int len = 0; char *start = str; char *end; char temp; while (*str) { len++; str++; } end = start + len – 1; while (start < end) { temp = *start; *start = *end; *end = temp; start++; end--; } } int main() { char str[] = "Hello"; doSomething(str); printf("%s\n", str); return 0; }