Thread: How make function which gives back two numerical values.

  1. #1
    Registered User
    Join Date
    Dec 2013
    Posts
    46

    How make function which gives back two numerical values.

    How make function which gives back two numerical values. I think needs using structure. now i try found my c book.

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,508
    Using a structure is one way. Another is to pass pointers to local variables to the function and update them in that function.

  3. #3
    Registered User
    Join Date
    Dec 2013
    Posts
    46
    I now found this book. Not yet idea how this local variables done? even correct words found info form The C (ANSI C)Programming Language (Brian W. Kernighan,and Dennis M. Ritchie) book.

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    4,508
    I'm having difficulty understanding your question.
    Have you read about structures?
    Have you read about returning values from functions?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. function not sending back values
    By Sal Zaydon in forum C Programming
    Replies: 2
    Last Post: 11-05-2013, 07:37 AM
  2. DIFF doesn't compare numerical values?
    By patiobarbecue in forum C Programming
    Replies: 1
    Last Post: 02-11-2010, 11:44 PM
  3. Replies: 2
    Last Post: 10-27-2009, 08:19 AM
  4. getting values off the stack back to c++
    By Anddos in forum C++ Programming
    Replies: 7
    Last Post: 04-30-2009, 06:48 AM
  5. Displaying numerical values in a window
    By drb2k2 in forum C++ Programming
    Replies: 1
    Last Post: 04-08-2003, 12:05 PM