Problem with changing variables :pointers, functions

This is a discussion on Problem with changing variables :pointers, functions within the C Programming forums, part of the General Programming Boards category; Heh They say the third time is a charm yer? (Hopefully) Code: void scan(int** a, int** b) { int c, ...

  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)

Page 2 of 2 FirstFirst 12
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, 03:21 PM
  2. Question about Static variables and functions.
    By RealityFusion in forum C++ Programming
    Replies: 2
    Last Post: 10-14-2005, 03: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

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