Hi
Dangling Pointer is a pointer which is pointing to such memory blaock which has been deleted.
And a Null Pointer is one which to pointing no where.
e.g. int *ptr = new (int);
delete ptr; // now ptr will be a dangling pointer which is pointing to location that has been deleted.
ptr = NULL; // this makes the "ptr" to be a NULL pointer
Void Pointer:...
User Profile
Collapse
-
i dont think it works on this way.
As the Sizeof "int" tend to be the natural word size of the processor.
If ur processor is of 16-bits, then sizeof (int) will return 2, n if it is of 32 bits then sizeof (int ) will return 4 .Leave a comment:
-
Hi All
m new to this community so i was just looking at few back dated posts.I also hav one doubt in this regard. i gone through the link u mention in ur rply but my doubt is: if compiler is creating the copy of the const variable for pointer , then it should carry the address of that copy not the address of varibale where it is originally stored.means according to me the address of const variable and the the address stored in pointer...Leave a comment:
-
hi
ya u r right tht there is the sample question..but if u closely look at the program its importing the file:
#import "C:\Program Files\Common Files\System\AD O\msado15.dll" \
thts possible only in case we are using C++ on Windows.
But as i mentioned my previous msg i am using C++ on linux...so it cant be done on linux..
So is there is any other way to get connected with databas...Leave a comment:
-
http://www.thescripts. com/forum/thread619397.ht ml
There is a same question you have asked for in this site only.
This link waz for VC++ ..:(Leave a comment:
-
Hi
I am using C++ on linux.
So Is there any wayout by whcih i can get connect to any database wothout using VC++
Thnx...Leave a comment:
-
Database connectivity in C++
Hi All
Is it possible to use a database with C++. ( otherthan files)
Without using VC++ interface can we connect to any database like Oracle, MS ACCESS ?
No activity results to display
Show More
Leave a comment: