every function has return the value?

Answer Posted / gulam_khan7

no every function can,t return the value.if we use as void
addnum(int,int) then it will be not return value.if we use
the int addnum(int,int) is also return the value as
according to there data type.
function has three type call by value,call by refrence.and
recursive function.these all are different.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is preprocessor with example?

578


Why is event driven programming or procedural programming, better within specific scenario?

1949


Write a C program to count the number of email on text

1412


What is a const pointer in c?

666


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1722






Explain what is a 'locale'?

581


When should you use a type cast?

585


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1420


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

933


How can I get the current date or time of day in a c program?

647


Can math operations be performed on a void pointer?

583


What is adt in c programming?

607


How can I read a binary data file properly?

631


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

664


find the sum of two matrices and WAP for it.

628