Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8289209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:27:19+00:00 2026-06-08T12:27:19+00:00

Queue queue = createQueue(); //queue to store int values Node *node = getNode(8); enQueue(queue,

  • 0
Queue queue = createQueue(); //queue to store int values
Node *node = getNode(8); 
enQueue(queue, (int)node);//storing an address in the int

..... some other statements ....

Node *root = (Node *) deQueue(queue);//typecasting an int to address
Node *left = root->left;

In the above code, queue can store integer values while address is being stored assigned in it.can it create any problem?

what are the situations or any architecture where storing address in an int can be problematic?

please give some examples.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:27:21+00:00Added an answer on June 8, 2026 at 12:27 pm

    what are the situations or any architecture where storing address in an int can be problematic?

    The architecture where pointers are larger than an int. That is, most 64-bit systems. You can use the type long or better intptr_t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have queue from struct type struct test { int numbers; }; queue<test> q;
I have a method: @PUT @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.TEXT_PLAIN) public String createQueue(JAXBElement<Queue> queueElement) { // do
Queue[,] inventqueue = new Queue[10,7]; for(int row = 0; row < inventqueue.GetLength(0); row++) {
I have a class Queue; I have these variables defined in that class... int
If I have a queue with strings as values How would I print all
dispatch_queue_t callerQueue = dispatch_get_current_queue(); dispatch_retain(callerQueue); dispatch_queue_t downloadQueue = dispatch_queue_create(Download Queue,NULL); dispatch_async(downloadQueue, ^{ //some code
Queue and airportSim classes are defined. class Queue { public: Queue(int setSizeQueue = 20);
I need a queue on n items where insertion of ( n +1) th
Consider a queue holding a lot of jobs that need processing. Limitation of queue
I've got a queue (actually 3 different queues but I don't believe that will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.