#include int main( int argc, char* argv[] ) { int z; unsigned int m; char firstLetter; char* word; printf("Enter the following (adding spaces as needed)\n"); printf("int, unsigned-int, char, and a string/word\n"); scanf("%d %u %c%s", &z, &m, &firstLetter, &(*word)); printf("Got:\n%d %u %c and %s\n", z, m, firstLetter, word); return 0; } /* Question: Why write "&*word" -- don't the & and the * cancel out?" * Yes, they do. You can get rid of both of them, and the program runs exactly the same. * BUT they are there for humans: * the * is there because I'm thinking of *word as being my string. * And the '&' is in front of *word, because I'm telling the reader * "Hey, be aware that the contents of my local var might get changed * by the function I'm calling!" * Which is how the '&' in front of `n` and `firstLetter` also are meant. */