Thread: 2 questions in C programming

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Lightbulb 2 questions in C programming

    hello everyone,

    I'm tring to write 2 DIFFRENT programs in C Language and i hope someone can help me.

    I - I want a C program that asks the "user" to input memory address (in HEX), I want the program to display (print to the screen) the content\s of the given address in HEX, ASCII and binary.


    II - Another C program. that will ask the user to input a string, and then, the program will run on all memory of the computer. for all memory cells that has the same string written in them, the program will print the address of the memory cells (not the value inside the cell). I need to print the address in: HEX and ASCII.

    any help would be appreciated.

    Thanks in advance!
    Last edited by Flow-Style; 07-06-2010 at 11:46 AM.

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Cool! Another cheater!

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Ah forget it - it's just another lame 1-posting driveby looking for free answers wherever they may come from.
    2 questions in C programming - Dev Shed

    Just drop the course already, you'll never make it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    That weird Java guy xniinja's Avatar
    Join Date
    Jun 2010
    Posts
    231

  6. #6
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,834
    Besides the fact this is a homework/troll question... I wonder how one can read memory these days. I suspect that most of a PC's memory is outside of the executable's legal view. Not like the good ol' days where you could "peek" wherever you wanted in RAM.

    But then it becomes a non-C problem.

  7. #7
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    Wow.

  8. #8
    Registered User
    Join Date
    Jul 2010
    Posts
    55
    bye.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. malloc problem
    By Tool in forum C Programming
    Replies: 23
    Last Post: 03-12-2010, 10:54 AM
  2. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  3. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM

Tags for this Thread