Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

C Programming question: Is it possible to use printf and scanf in one line? Like for example, I have: main () { char string[99]; printf("Enter your name: "); scanf("%s", string); printf("<- This is your name."); } But in that case, scanf kind of like does a line break so printf has to start at a new line. What I'm asking is, is there a way to have the 2nd instance of printf output to the same line as scanf, so that the output will look like: Enter your name: blahblah <- This is your name. ?

OpenStudy (anonymous):

http://ideone.com/XvYAs

OpenStudy (anonymous):

It is possible, but you should use something like curses or conio

OpenStudy (anonymous):

Specifically which functions?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!