In C++ can you go from a larger type to a smaller type. Example
long lg;
int in;
lg = 89;
in = lg;
Is this legal or will the compiler give an error????
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: type transfer
|
Click Here to Expand Forum to Full Width |