What is true about the followingC Functionsa.Need not return any valueb.Should always return an integerc.Should always return a floatd.Should always return more than one value.

D
This question is related to TCS Interview

Showing Answers 1 - 16 of 16 Answers

adarsh

  • Jul 19th, 2005
 

ans is a

  Was this answer useful?  Yes

Jaison Peter

  • Aug 1st, 2005
 

fool how it will be a  
 
there will be some thing that to be returned 

  Was this answer useful?  Yes

jackcline

  • Aug 4th, 2005
 

Question : 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 : D 
how is it possible.

  Was this answer useful?  Yes

Sinic

  • Aug 23rd, 2005
 

it's a wrong answer C function can not retunr multiple values Answer is A

  Was this answer useful?  Yes

rp

  • Aug 25th, 2005
 

answer is A  
there's no doubt in it 

  Was this answer useful?  Yes

kumar raja

  • Dec 13th, 2005
 

c function need not return a value and it can not return more than one value at a time , otherwise u use pointers.

so the answer is a ,no doubt about it

anitha

  • Jul 13th, 2006
 

ans a: need not return any value

  Was this answer useful?  Yes

baviya

  • Sep 25th, 2007
 

Ans is b.
C function should return an value.

  Was this answer useful?  Yes

hrs1129

  • May 28th, 2008
 

ANS IS A.NEED NOT RETURN ANY VALUE GENERALLY IF IT IS VOID MAINi()IT WILL NOT RETURN ANY VALUE OF INT TYPE

  Was this answer useful?  Yes

poojadev

  • Mar 3rd, 2009
 

It depends on what we have given in the return type as.
If we give void as the return type then the function may not return a value.
If given as integer or float or character return type it may return a value of corresponding return type.

  Was this answer useful?  Yes

swarnakarm

  • Jun 1st, 2009
 

Here answer is option a.  But C program may return any value or not depends on its return type.
It is not necessary that C program does not return any value.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions