Thread: Problem with changing variables :pointers, functions

  1. #16
    Registered User
    Join Date
    Apr 2004
    Posts
    173
    Heh
    They say the third time is a charm yer? (Hopefully)

    Code:
    void scan(int** a, int** b)
    {
    	int c, d;
    
    	printf("Enter the size of matrix: ");
    	scanf("%d %d",&c, &d);
    
    	**a = c;
    	**b = d;	
    }
    Last edited by 0rion; 04-03-2005 at 01:18 AM.

  2. #17
    Work in Progress..... Jaken Veina's Avatar
    Join Date
    Mar 2005
    Location
    Missouri. Go Imos Pizza!
    Posts
    256
    I'll take a look. (don't put the entire code in your post, attach your source files so we can open them seperately)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointers to Class Member Functions
    By Dark_Phoenix in forum C++ Programming
    Replies: 6
    Last Post: 09-02-2007, 02:21 PM
  2. Question about Static variables and functions.
    By RealityFusion in forum C++ Programming
    Replies: 2
    Last Post: 10-14-2005, 02:31 PM
  3. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  4. Passing pointers between functions
    By heygirls_uk in forum C Programming
    Replies: 5
    Last Post: 01-09-2004, 06:58 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM