why main() method should not return any value
Answers were Sorted based on User's Feedback
Answer / nadeem khokhar
execution starts from the main function. no function can call it, which means no function can save the returned value from main. then why should we take its return type as we can not use that any where! i do agree to jhill123 that in C we write int main instead of void main, it is used for exception handling.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / jhil123
It is possible if we declare main() function return value
as void. This is because the default return value of main
function in C is int and if one declares it as void it
results in mismatch in declaration and so cannot be
declared as void.
| Is This Answer Correct ? | 6 Yes | 7 No |
4.Write a program to get the string in array and print that? or Without using loop print the array.
An image map is a collection of
Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe
the systematic access of small computers in a distributed data processing system is referred as?
how we can call xml file in java file using Android platform?
What is the client concept in SAP? What is the meaning of client independent?
5.Call by value and Call by reference with program?
i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......
What are data structures?
write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe
sample and simple coding where we get?
How same session variable can be used in both Asp and Asp.net?