Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Programming C 1.What is the difference between getc and getchar function? 2.What

ID: 3617326 • Letter: P

Question

Programming C
1.What is the difference between getc and getchar function?
2.What does the scanf function return?
3.What format specifier is used by printf to output
a.floating print number
b.character
c.integer
4.What is meant by the address of a variable?
5.Within %8.4f which part is the minimum field with specifier, andwhich me is the precision specifier?
6.What header file has to be included in the program that usesmathematical functions?
7.What is the advantage of using time(NULL) function as an argumentof srand()?



Explanation / Answer

please rate - thanks 1.What is the difference between getc and getchar function?            getch gets the input source as a parameter, getchar gets noparameter, it gets 1 character from stdin 2.What does the scanf function return?                how many elements were read 3.What format specifier is used by printf to output a.floating printnumber                       %f b.character                                       %c c.integer                                          %d 4.What is meant by the address of a variable?         location in memory werea variable is stored 5.Within %8.4f which part is the minimum field with specifier, andwhich me is the precision specifier?            minimum field is 8,      precision is4 6.What header file has to be included in the program that usesmathematical functions?      math.h 7.What is the advantage of using time(NULL) function as an argumentof srand()?                                      seeds the random number generator to a unique value based on thetime