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; }

What does the following code snippet demonstrate?  #include…

What does the following code snippet demonstrate?  #include struct point { int x; int y; }; struct point doSomething(int x, int y) { struct point p; p.x = x; p.y = y; return p; } int main() { struct point p = doSomething(7, 8); printf(“%d %d\n”, p.x, p.y); return 0; }