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

Use basic C Q2. (21 points) Find the error in each of

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!