#Meta-Wlp: #Macro: TITLE wlp: Learn C (I) p. 12
By now you should understand that printf is a function that has a variable number of arguments. The first argument is some text in quotes, the format string, and the format string is followed by data that will be substituted into the format string in positions given by special markers in the format string.
The escape sequence %d is the marker in the format string for substituting in integer data.
#include<stdio> /* You may have also noted that comments in C programs can occur anywhere in the program, they are introduced by /* and continue until across lines until encountering a * /, but without the space between the * and the /, as in */ int main(){ int one ; /* what */ int two ; /* does */ int three ; /* this */ one = 1 ; /* program */ two = 2 ; /* do? */ three = 3 ; printf("This is as easy as %d, %d, %d.\n", one, two, three ) ; }Click the best statement concerning this program. #Shuffle: none $PAGE$-A $PAGE$-B $PAGE$-C $PAGE$-D $PAGE$-E Return to Learn C Introduction #: This program illustrates how C allows comments between /* and */ #: This program illustrates how the order of variables following the format string associates with the order of special markers found in the format string. #: This program gives a further illustration of how the literal text in the format string interacts with the substituted data values. #: This program prints: This is as easy as 1, 2, 3. #: This program does all of the things listed here. #: