Pointers initialize an identity matrix

This is a discussion on Pointers initialize an identity matrix within the C Programming forums, part of the General Programming Boards category; I am very new at working with C and am working on a project which instructions are: Use POINTERS to ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    1

    Pointers initialize an identity matrix

    I am very new at working with C and am working on a project which instructions are: Use POINTERS to write the program to initialize an identity matrix of the order N (this value must be defined in the beginning of the program with the help of a preprocessor directive). Display the result in the form of the square matrix (N numbers in a row). I don't even know where to begin, any help is very appreciated.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Search for 'dynamic', possibly combine that with 'array' or 'matrix'. I assume your teacher actually covered malloc and free, and that you weren't absent or asleep on that lesson.


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2D matrix pointers regarding functions
    By Shotgun in forum C Programming
    Replies: 1
    Last Post: 04-02-2006, 12:09 AM
  2. What is a matrix's purpose in OpenGL
    By jimboob in forum Game Programming
    Replies: 5
    Last Post: 11-13-2004, 11:19 PM
  3. Need a quick example! Operator overloading and matrix
    By Great Satchmo in forum C++ Programming
    Replies: 2
    Last Post: 09-19-2004, 10:08 PM
  4. Identity Matrix
    By Unregistered in forum C Programming
    Replies: 11
    Last Post: 10-11-2001, 11:47 AM

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