Question: q1) please write getfloat(), the floating point analog of getint() q2) what type does it return as its function value? please answer 1 #include 2

q1) please write getfloat(), the floating point analog of getint()
q2) what type does it return as its function value? please answer
 q1) please write getfloat(), the floating point analog of getint() q2)
what type does it return as its function value? please answer 1
#include 2 #include 3 4 #define SIZE 5 5 6 int getch(void);

1 #include 2 #include 3 4 #define SIZE 5 5 6 int getch(void); 7 void ungetch(int); 8 int getint(int *pn); 9 // write getfloat() function signature here 10 11. int main(void){ 12 int n, i, array[SIZE]; 13 14 for (n=0; n 0) ? buf[--bufp] : getchar(); 58 } 59 60 - /*populate the local buffer with characters you meant to 'put back' b/c you 61 read too far*/ 62 void ungetch(int c){ 63 if (bufp >= BUFSIZE) 64 printf("ungetch: too many characters "); 65 else 66 buf[bufp++] = 0; 67 }

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!