
Patrick B. answered 09/20/20
Math and computer tutor/teacher
First you must declare these variables as
characters.
For example char Tim='a';
But we'll assume that's not the problem.
The first printf statement will print
I looked ___ to ____
and will display some unpredicatble garbage
character because the value for Tony is 10
which is a NON PRINTABLE character and Terry
is assigned a decimal value, which printf
will not format correctly.
The second printf statement will print
The final result is 2
But the 2 will appear in some unpredicable
decimal format, again because printf will not
be able to match and format it correctly.
The third printf statement will print
There are ___________
where again some unpredicatble garbage will
appear in the blank because printf will attempt
to match the contents of the character Terry-5,
which did not get initialized properly to begin with
and the string "of them" will tgry to get crammed
into the character in the last format
The 4th printf statement will print
A != Tim
The last and final printf statement before the
program mercifully ends will print
1+1+1
the value Tony+1 is not matched to anything
because there are no format specifiers in
the string.