assignement is due tomorrow, and we've already confirmed hes inconfident, guess il do the best i can!
Type: Posts; User: killer9012
assignement is due tomorrow, and we've already confirmed hes inconfident, guess il do the best i can!
#include<iostream>
using namespace std;
int X = 123 ;
float Y = 456.7f ;
double Z = 9876.54321;
void D( int N )
{
weird numbers such as -8164983 come out...
but if the pointer is not poiting to anything, asking it what it points to would be illegal wouldnt it?
well i supposed to sho the contents of all variables, the pointers included, which would be illegal to acess their content, since they dont point at anything, thus have no content, right?
so if by asking for the contents of the pointers when their not acossiated to anything, isnt that illegal too, since their pointing to random spots in the memory that the program may not eve have...
so the code i posted is correct in refferance to the size and contents and adress... so x y z are stored staticly and all the pointers stored dynamicly? what about a, b, etc in the void functions?...
#include<iostream.h>
int X = 123 ;
float Y = 456.7f ;
double Z = 9876.54321;
void D( int N )
{
int d = 4444 ;
}