Float the get;
Char * p;
P=(char *) & amp; The get;
CodePudding user response:
C # is not to play, in order to secure a pointer don't have toCodePudding user response:
And written in c + + is the same, plus the unsafe mark in the function or class, program compiler option switch canThe namespace test
{
Class Program
{
The unsafe static void Main (string [] args)
{
Float the get=0.432 f;
Char * p;
P=(char *) & amp; The get;
Console. WriteLine (" {0} ", new String (p));
}
}
}
CodePudding user response:
Float f=1.1 f;Char b=the Convert. ToChar (f);