Explain how it works

Assignment Help Computer Engineering
Reference no: EM133240274

Question: Need help with a coding problem that is in C where it asks for a program to check odd or even with a function that is this.

int isOdd(int num) the output is 0 (even number) or 1 (odd number)

Please show the code for this and explain how it works.

to input a number (type: integer, in the main function) from screen and also display segment address information by using etext, edata, end display the addresses of main, isOdd, your identifiers (variables) used in main function and isOdd function, num (in isOdd(int num)).

This is being done in putty.

This is what the result should look like.

Input an integer

5

adr etext: 40075D adr edata: 60103C adr end: 601040

the id main is at adr: 4005CD

the id isOdd is at adr: 40069F

the id n is at adr: 3DC92EFC

the id num is at adr: 3DC92EDC

5 is odd number

Reference no: EM133240274

Questions Cloud

Summarize a contribution made by noam chomsky : COM 339 New York University - Summarize a contribution made by Noam Chomsky to the field of psycholinguistics and potentially the development of language
Write a response to the book content and storyline : Write a response to the book (about 2 pages) - Include a short (1-2 paragraph) overview of the content and storyline
What the professor wants me to do: move test of count : What the professor wants me to do: move test of count and group by into a single select query for finding playerno. Should get one row as result
Case study-southwest airlines : Each Discussion Forum requires a main post, providing some analysis of the case and its relationship to one or more concepts presented in the chapter in which t
Explain how it works : CSCI 7645 Fairleigh Dickinson University coding problem that is in C where it asks for a program to check odd or even with a function that is this.
Discuss the meaning and implications of griswold penumbras : Discuss the meaning and implications of Griswold's penumbras and emanations. Describe the legal basis for an unenumerated right
What points from the power point slides off habits of mind : What points from the power point slides off habits of the mind; a thoughtful spirit, a requiring mind; and engaging the imagination captured your attention.
Describe the difference in the results that you would get : CIT 2110 Nashville State Community College Describe the difference in the results that you would get if the five processes from the example
What did you learn from observing the officers in this case : What did you learn from observing the officers in this case? Is there anything you would do differently if you were investigating this case

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd