both the printf and scanf functions return some value.this can be checked readily by assigning them to a variable.it returns value depending on the variable to which it is assigned
printf and scanf are library functios used in "c language". printf is used to print the o/p on the monitor or display the o/p. scanf is used to read the input values into adrress of that variable from the user. printf and scanf returns the values depend on "datatype".
sanf and printf are both library functions printf gives the output so it gives and calculate the total number of bytes which must be a integer value. sanf calculates the total number of valid inputs so it must be a int.
printf and scanf are library functios used in "c language". printf is used to print the o/p on the monitor or display the o/p. scanf is used to read the input values into adrress of that variable from the user. printf and scanf returns the values depend on "datatype".
printf is used to display the values of variables on screen according to its format specifier. scanf is used to read the values that are provided by user through keyboard and store these values in variables. printf return the value that it successfully print on screen. similarly scanf return that value that it read successfully.
Both "printf()" and "sacnf()" returns the integer values.It returns no of values used;e.g main() { int i=printf("hello"); printf("String Lengeth = %d",i); }