To where does the library functions in c return the value? -


Eventually the library function will return a value. Who takes this return value?

For example, consider the code below.

  # include & lt; Stdio.h & gt; The main () {printf ("Waiting for the character being pressed with the keyboard to exit. \ N"); Getch (); Return 0; }   

getch () gives a value Who casts this value?

Answer me in general knowledge, not specific to the above program.

The return value of a function can be removed.

In the example you provided, you would not know that there is actually a return value of printf

the function call Expression description , only the side effect is being followed, the return value is abandoned. Another example of the expression statement is:

  21 + 21;   

Expression 21 + 21 has been evaluated and omitted. C allows this syntax, even though a compiler has optimized it.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -