473,320 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Puzzel in C

Hi
I am Gayatri from India.

My question is
If we declare any variable in C and try to get
the address of that same variable then we are getting
any unsigned integer value.
But if we do the same job in C++ then we are getting
the Hexadecimal numbers Why .....?

Gayatri Mishra
Jun 9 '07 #1
2 1287
weaknessforcats
9,208 Expert Mod 8TB
It's the same in C++. Addresses are unsigned int.

Probably this is your IDE and the debugger is set to show values in hex.
Jun 9 '07 #2
AdrianH
1,251 Expert 1GB
Hi
I am Gayatri from India.

My question is
If we declare any variable in C and try to get
the address of that same variable then we are getting
any unsigned integer value.
But if we do the same job in C++ then we are getting
the Hexadecimal numbers Why .....?

Gayatri Mishra
In what context are you referring to? It doesn't make any sense. A hex number can represent an unsigned int and the other way around.

A pointer is very much like an unsigned int, but in C++ which uses a strongly typed system, you cannot just assign a int to a pointer or vice-versa.

Can you clarify what you are asking?


Adrian
Jun 10 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Paul T. Rong | last post by:
Dear all, It is very close to the end of finishing a database, the last report I am making is kaput, what I want to do is while the report is opening, a dialog form will open first for the user...
1
by: Jamiil | last post by:
This is the first time I am ever using JavaScript, I am not even elocuent in HTML, all I am is someone who has Microsoft/Netscape Webpage developers. What I am trying to say is that I am not an...
6
by: Julia | last post by:
I am trying to sort a linked list using insertion sort. I have seen a lot of ways to get around this problem but no time-efficient and space-efficient solution. This is what I have so far: ...
1
by: Hanson | last post by:
I need to split names in a table field that have prefixes, like: van den Eden. If I had a function that would find the first capital in a string, and show everything to the left of the first...
6
tolkienarda
by: tolkienarda | last post by:
hi everyone i just made a major acomplishment in my life, for the last several months 9 to be exact i have been working on a puzzen and i just finished, i think i set some kind of record and am going...
3
by: James R. Davis | last post by:
I am an absolute beginner and finding myself confused at every step that I take in the learning process. It will get better. Anyway, I have a SqlDataSource control on a form and at page load...
5
by: eldad | last post by:
hi i have a table let say 10x10 how can i go to each td and check the innerhtml value without giving an id for each td i canot give an id for each td because the table is build by a function...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.