cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
cannot change int * into float *
cannot change int * into float *
Feb 11, 2012 at 4:32pm UTC
zone19871
(40)
Int main()
{
int hello = 8;
function(&hello);
return 0;
}
void function(float* hello)
{
*hell = 5;
}
Is it possible to to make this code work without changing veriable types and still same layout?
Last edited on
Feb 11, 2012 at 4:32pm UTC
Topic archived. No new replies allowed.