Thread: Pointers initialize an identity matrix

  1. #1
    Registered User
    Join Date
    Sep 2009

    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
    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.

    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, 01:09 AM
  2. What is a matrix's purpose in OpenGL
    By jimboob in forum Game Programming
    Replies: 5
    Last Post: 11-14-2004, 12:19 AM
  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