Question: Use basic C Q2. (21 points) Find the error in each of the following program segments. If the error can be corrected explain how a)
Use basic C

Q2. (21 points) 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) intx, y; x=y; char s[] int count; for ( ; *S != '\0'; s++) d) "this is a character array"; printf('%c ", *s ); e) short *numPtr, result; void *genericPtr= numPtr; result - *genericPtr + 7; f) float x 19.34; float XPtr = &x; printf( "%f ", xPtr ); g) char *s; printf( "%s ", s )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
