The printf function prints the argument passed to it (a string). Next, we will see how to print it if it's stored in a character array.
#include int main() { char z[100] = "I am learning C programming language."; printf("%s", z); // %s is format specifier return 0; }
Output:I am learning C programming language.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Output:
need an explanation for this answer? contact us directly to get an explanation for this answerI am learning C programming language.