what is call by value and call by reference

Answer Posted / kalyani.p.v

call by value:The called function sends its value as
argument to calling function.
Call by reference:The calling function sends address of
variable to the called functin.

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1446


What is nested structure with example?

844


Why pointers are used in c?

786


What do you mean by c what are the main characteristics of c language?

809


How can you avoid including a header more than once?

767


Explain what is #line used for?

824


The file stdio.h, what does it contain?

911


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

2408


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1033


What is volatile c?

791


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3289


How many keywords (reserve words) are in c?

834


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

5242


Write a program to maintain student’s record. Record should not be available to any unauthorized user. There are three (3) categories of users. Each user has its own type. It depends upon user’s type that which kind of operations user can perform. Their types and options are mentioned below: 1. Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record) 2. Super Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record, Delete Single Record) 3. Guest (Search Record [by Reg. No or Name], View All Records) When first time program runs, it asks to create accounts. Each user type has only 1 account (which means that there can be maximum 3 accounts). In account creation, following options are required: Login Name: <6-10 alphabets long, should be unique> Password: <6-10 alphabets long, should not display characters when user type> Confirm Password: Account Type: Login Name, Password and Account Type should be stored in a separate file in encrypted form. (Encryption means that actual information should be changed and Decryption means that Encrypted information is changed back to the actual information) If any of the above mentioned requirement(s) does not meet then point out mistake and ask user to specify information again. When Program is launched with already created accounts, it will ask for user name and password to authenticate. On successful authentication, give options according to the user’s type.

1763


What is the purpose of & in scanf?

863