Results 1 to 4 of 4

Thread: Matrix parameter function

  1. #1
    Join Date
    Apr 2009
    Posts
    79

    Matrix parameter function

    How to pass a matrix (a function has two dimensions) in a function parameter.
    Code:
    for (i = 0; i <100; i + +)
     (
          myFunction (table [i]); 
     )
    Thank you in advance

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Matrix parameter function

    Code:
    int ** tab;
     / / or else
     char ** table;
     / / or else
     char * table[100];
    Then you pass a parameter to your function:
    Code:
     myFunction (table);
     / / or else
     for (i = 0; i <100; i + +)
     (
          myFunction (table [i]);
     )

  3. #3
    Join Date
    Jan 2009
    Posts
    199

    Re: Matrix parameter function

    The differences between Matrix parameters and Query Parameters are much more than just convention. Objects and class functions are often associated with code, and C structures may seem somewhat arcane, so C libraries are often dismissed as viable solutions.Matrix parameters are not resources, they are aspects that help reference a resource in an information space that is difficult to represent within a hierarchy.

  4. #4
    Join Date
    Dec 2008
    Posts
    177

    Re: Matrix parameter function

    To make a two-dimensional array in function parameter:
    Code:
     int tab [10] [10] / * values pf * /
    
     function (tab) / * function call * /
    
     void function (int * array [10]) / * prototype (or int tab [] [10]) * /

Similar Threads

  1. Parameter function and generic pointer
    By Rubero in forum Software Development
    Replies: 7
    Last Post: 25-09-2010, 09:04 PM
  2. Pointer parameter in a function
    By Chrisch in forum Software Development
    Replies: 4
    Last Post: 14-12-2009, 10:57 PM
  3. Passing function parameter and static
    By Banjiji in forum Software Development
    Replies: 3
    Last Post: 27-10-2009, 07:32 PM
  4. function that takes a 2D array as a parameter
    By Umang in forum Software Development
    Replies: 4
    Last Post: 06-05-2009, 11:59 PM
  5. Calling a function with arguments or parameter in Powershell?
    By ArunJ in forum Software Development
    Replies: 4
    Last Post: 18-02-2009, 05:53 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,211,336.19959 seconds with 17 queries