I played with your problem and found the solution:
>static char A ;
>static char B ;
>Result ..... World
The Problem is that "sprintf" empties the output variable,
when it is started. Therefor A is empty, when it should be
written in the output string (which is also A). Therefore:
No A, only B. No "Hello", only "World".
Basic doesn't have this problem, because it utilizes intermediate
The Solution :
static char A ;
static char B ;
static char C ;
>Obviously, I should not be using sprintf to accomplish this approach.
Why not ...
Every problem can be solved in a wide variety of ways.
Reminds me of ... umm ... have a look :
Quote:>Could someone kindly lift the fog and show me the correct method.