What is true about the following
C Functions
a.Need not return any value
b.Should always return an integer
c.Should always return a float
d.Should always return more than one value.

Answer Posted / shruti

Need not return any value.

its acceptable if a function does not return any value
provided its return type is "void"..

if its return type is char , int , float.. then it has to
return that respective type of value

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between union and structure in c?

798


What is hashing in c language?

871


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

1009


Explain the use of fflush() function?

874


c language interview questions & answer

1717


What does a pointer variable always consist of?

888


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

1015


Differentiate between a structure and a union.

1041


What are linker error?

861


What are types of preprocessor in c?

829


Hi can anyone tell what is a start up code?

1854


How can I implement a delay, or time a users response, with sub-second resolution?

858


What is the difference between ‘g’ and “g” in C?

3463


Why do we use stdio h and conio h?

869


What is structure pointer in c?

793