inline returns

This is a discussion on inline returns within the C Programming forums, part of the General Programming Boards category; I think I know, but not sure on the terminology. What is an inline return and how does it differ ...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    42

    inline returns

    I think I know, but not sure on the terminology. What is an inline return and how does it differ from a normal return.

    Please give me some examples.

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    2,895
    If you think you know the answer why don't you post what you think?


    Jim

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    42
    Code:
    int somefunction()
    {
    	if(....)
    		return value;
    	.
    	.
    	. // Some work here
    	.
    	.
    }
    So I'm assuming returning something in the lines of the function instead of at the end of the function.

  4. #4
    Registered User
    Join Date
    May 2010
    Posts
    2,895
    That sounds about right.

    Jim

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. When to inline your *tors
    By Angus in forum C++ Programming
    Replies: 43
    Last Post: 10-29-2008, 04:38 PM
  2. Polynomials and ADT's
    By Emeighty in forum C++ Programming
    Replies: 20
    Last Post: 08-19-2008, 09:32 AM
  3. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 10:42 PM
  4. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 01:26 AM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 02:27 PM

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