S
sid
hi ,
whats the issue with the following declaration, is it correct and what
exactly is happening here.
int main()
{
//.....
int* ptr=10; // i suppose ptr is pointing to the memory location which
stores the value 10.
//
.......
}
on gcc it gives no error...but when i compile it using g++ it gives
"invalid conversion of int * to int"
please advise on this.
regards.
whats the issue with the following declaration, is it correct and what
exactly is happening here.
int main()
{
//.....
int* ptr=10; // i suppose ptr is pointing to the memory location which
stores the value 10.
//
.......
}
on gcc it gives no error...but when i compile it using g++ it gives
"invalid conversion of int * to int"
please advise on this.
regards.