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
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain zero based addressing.
Explain why can’t constant values be used to define an array’s initial size?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Can you please explain the scope of static variables?
What is array of structure in c?
why wipro wase
How are structure passing and returning implemented?
in linking some of os executables are linking name some of them
Explain what are the different data types in c?
Why do we write return 0 in c?
Do you know the use of 'auto' keyword?
How to Throw some light on the splay trees?
how can I convert a string to a number?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }