concatenation - Concatenate character to a sentence c -


how add char sentence.

for example have player1 , add player1 beginning of sentence " please enter how many times shuffle deck.

i'm used java can add + concatenate variable , string(s)

i have far doesn't of have typed:

printf(&player1 + " please enter how many times shuffle deck: "); int numshuf; scanf("%i", &numshuf); 

any appreciated

try this:

printf("%s please enter how many times shuffle deck: ", player1); 

printf means print formatted, can format want print , add variables in arguments.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -