Skip to main content

Timeline for Unexpected outputs - initials.c

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Aug 8, 2015 at 22:19 comment added Andrew Smith OK, thanks for the newbie tips.
Aug 8, 2015 at 22:11 comment added ChrisG What had you changed? You can edit your question as you like. I just added the correct code formatting. Feel free to change it as you find it best. My edit probably happened the same time with yours and overwrote it.
Aug 8, 2015 at 22:05 comment added Andrew Smith Thanks again. Quick housekeeping question: I edited my op then saw that you had changed it back. I take it I should leave the op untouched and work the answer down the page as has happened here?
Aug 8, 2015 at 21:59 history edited ChrisG CC BY-SA 3.0
added toupper
Aug 8, 2015 at 21:59 comment added ChrisG Of course you can! And as I have it it's wrong! Good catch! :) I'll edit my answer.
Aug 8, 2015 at 21:58 vote accept Andrew Smith
Aug 8, 2015 at 21:58 comment added Andrew Smith Ha! I got it, thanks! I did have a question about whether I could use toupper inside the printf function but I tried it and lo..
Aug 8, 2015 at 21:48 comment added ChrisG Glad I could help. If you are satisfied with the answer and it solved the problem you had you can mark it as correct by pressing the gray checkmark to the left and vote it up by pressing the up arrow above the checkmark.
Aug 8, 2015 at 21:46 comment added Andrew Smith That's super helpful. I did see somewhere in CS50 the suggestion of outputting directly but I was sidetracked by trying to directly output the 'i'th char, instead of simply using a placeholder and referencing the name variable.
Aug 8, 2015 at 21:35 history answered ChrisG CC BY-SA 3.0