April 3, 20206 yr I cannot get my head around this. Can someone at least tell me the name of what is happening here so I can Google it for further reading? I know it has something to do with how memory of a computer works but I want to get my head around it. Thank you so much in advance for your help!
April 3, 20206 yr Author Hi @NOCK. Thank you for your reply. I am using the extra time I have at home to study and I am taking CS50, Harvard's Introduction to Computer Science. get_float comes from a library they wrote to make learning easier at the start, it is imported on line one of the above code. Here it is on GitHub https://github.com/cs50/libcs50/blob/develop/src/cs50.h and here is the code from the file, for that method: /** * Prompts user for a line of text from standard input and returns the * equivalent float as precisely as possible; if text does not represent * a float or if value would cause underflow or overflow, user is prompted * to retry. If line can't be read, returns FLT_MAX. */ float get_float(const char *format, ...) __attribute__((format(printf, 1, 2)));
April 3, 20206 yr I don't write in low-level languages so I'm not 100% sure, but it's possibly a pointer to the place in memory where that code is stored.
Create an account or sign in to comment