SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3

Thread: Function

  1. #1
    Senior Member
    Join Date
    Dec 2007
    Posts
    206
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Function

    Hi,
    I am getting confusion here,what ia the function call by value and function call by referance.Pl any one clarify this.
    Thanks

  2. #2
    Member
    Join Date
    Jul 2007
    Location
    Mumbai
    Posts
    203
    Post Thanks / Like
    Blog Entries
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Function

    Call by Value :
    If you pass a parameter to a function using call by value, then any changes that are being made to that parameter inside the function persists only inside the function. Once the function is exitted, the value of the parameter is the same as what was passed to the function.

    Call by Reference :
    If you pass a parameter to a function using call by reference, then any changes that are being made to that parameter inside the function persists even after function is exitted.

    For more details, you can refer any book on any programming language. This is one of the basic concept in programming.

    Thanks,
    Mansoor
    Thanks,
    Mansoor
    QTP Inside Out

  3. #3
    Member
    Join Date
    Jan 2008
    Posts
    121
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Function

    Call By Value :
    It craetes a copy of variable within a function and is destroyed once the function ends.
    Call By Refrence:
    The arguments passed by refrences provides the memory address of the variable and twaeking done with the variable within a function persists even after function ends

    By default arguments are passed as a refrences

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:08 AM.

Copyright BetaSoft Inc.