Apologies,
My code looks something like this
int manu()
{
char *Test1 = NULL;
char *Test2 = NULL;
int returnCode;
// I pass Test1 to another function and populate its value;
returnCode = function ( Test1 );
Test2 = Test1;
// when i print Test1 and Test2, sometimes they both have different values ( NOT ALWAYS, after i run them continuously...
User Profile
Collapse
-
C++ -- char * having junk characters
Hi Experts,
I am having problems with the below c++ code
func manu()
{
char *Test1 = NULL;
char *Test2 = NULL;
int returnCode;
// I pass Test1 to another function and populate its value;
returnCode = function ( Test1 );
Test2 = Test1;
// when i print Test1 and Test2, sometimes they both have different values (...
No activity results to display
Show More
Leave a comment: