Find the error in each of the following program segments. If the error can be corrected, explain
how.
a) int *number; printf( "%d\n", *number );b) float *realPtr; long *integerPtr;integerPtr = realPtr;c) int * x, y; x = y;d) char s[] = "this is a character array";int count;for ( ; *s != '\0'; ++s) printf( "%c ", *s );e) short *numPtr, result; void *genericPtr = numPtr;result = *genericPtr + 7;f) float x = 19.34; float xPtr = &x; printf( "%f\n", xPtr );g) char *s;printf( "%s\n", s );
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.