Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved 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

q1) please write getfloat(), the floating point analog of getint()
q2) what type does it return as its function value? please answer
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions