hi guys.I want to learn why the output of a printf("%c",VCV); is .C.Is there anyone to tell me that ?
hi guys.I want to learn why the output of a printf("%c",VCV); is .C.Is there anyone to tell me that ?
The line you give is totally incorrect and wouldn't compile without some extra information (and hence we have no idea what you mean). Either VCV is a variable of some kind or you mean "VCV". Either way, don't print out a string using a character printf specifier - it won't do what you expect.
%c prints a single character.
%s prints a whole string.
- Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
- A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
- The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.