Like Tree2Likes
  • 1 Post By GReaper
  • 1 Post By laserlight

I have problem with the following problem can someone help with this

This is a discussion on I have problem with the following problem can someone help with this within the C++ Programming forums, part of the General Programming Boards category; Match the following with reference to the following program segment: int i, j, = 25; int *pi, *pj = & ...

  1. #1
    Registered User
    Join Date
    Sep 2011
    Location
    Mumbai, Maharashtra, India
    Posts
    6

    I have problem with the following problem can someone help with this

    Match the following with reference to the following program segment:
    int i, j, = 25;
    int *pi, *pj = & j;
    .
    . /* more lines of program */
    .
    *pj = j + 5;
    j = *pj + 5 ;
    pj = pj ;
    *pi = i + j
    Each integer quantity occupies 2 bytes of memory. The value assigned to i begin at (hexadecimal) address F9C and the value assigned to j begins at address F9E. Match the value represented by left hand side quantities with the right.
    1. &i a. 30
    2. &j b. F9E
    3. pj c. 35
    4. *pj d. FA2

    Please tell me what can be the answer and how

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    Come on, it can't be that difficult...

    EDIT: 2 bytes? Hmm... Do you use Turbo C++ by any( all ) chance? ^_^
    manasij7479 likes this.
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Sep 2011
    Location
    Mumbai, Maharashtra, India
    Posts
    6
    yeah thanx for ur help i got the solution for this problem. really appreciate ur interest to help me.

  4. #4
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    Quote Originally Posted by rushi245 View Post
    yeah thanx for ur help i got the solution for this problem. really appreciate ur interest to help me.
    Don't mention it!
    Devoted my life to programming...

  5. #5
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Can we perma-group-ban "areas"?..........................
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  6. #6
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,528
    Quote Originally Posted by AndrewHunter View Post
    Can we perma-group-ban "areas"?..........................
    | :P |
    Manasij Mukherjee | gcc-4.9.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,313
    Quote Originally Posted by AndrewHunter
    Can we perma-group-ban "areas"?..........................
    Yeah, we should perma-group-ban everyone from the areas around 8.3 light-minutes from the Sun
    AndrewHunter likes this.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  8. #8
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Quote Originally Posted by laserlight View Post
    Yeah, we should perma-group-ban everyone from the areas around 8.3 light-minutes from the Sun
    Haha....fair enough.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 10-16-2008, 08:30 PM
  2. sturct/pointer problem, and fscanf problem
    By hiphop4reel in forum C Programming
    Replies: 6
    Last Post: 07-28-2008, 10:40 AM
  3. Replies: 27
    Last Post: 10-11-2006, 05:27 AM
  4. Visual Studio Linker problem or my problem?
    By OOPboredom in forum C Programming
    Replies: 2
    Last Post: 04-13-2004, 01:32 AM
  5. syntax linked list problem & struct problem
    By beely in forum C Programming
    Replies: 5
    Last Post: 11-11-2002, 09:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21