Search:
Forum
General C++ Programming
Standard input/output help C language
Standard input/output help C language
Nov 30, 2016 at 12:42pm UTC
lFoxiel
(29)
Assume that word is an array of chars containing a string . Write a statement to display the message "Today's Word-Of-The-Day is: " followed by the value of word on standard output .
My code:
printf(
"Today's Word-Of-The-Day is: "
, *word);
Error results:
http://prntscr.com/ddlrh5
Last edited on
Nov 30, 2016 at 12:43pm UTC
Nov 30, 2016 at 1:29pm UTC
Thomas1965
(4571)
Try this:
printf(
"Today's Word-Of-The-Day is: %s"
, word);
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs