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 |
Define Abstract method & class with Example
How to get the index of the clicked field in reports in ABAP?
what are wrapper classes
A good website has the following conditions It should be interactive. It should contain at least 20 images. Title cannot be null and should contain at least 10 letters other than spaces and hyphen (-). The keywords should contain atleast three among the following list : "design", "Graphics", "lovely", "beautiful", "amazing" and "mesmerising" Write a method: boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title,String keywords[]) isInteractive whether the site is interactive or not numOfImages Number of images on the website title Title of the website keywords Array of keywords in the website.
1.What is difference between symget and & in sas? 2.what is difference between callsymput and %let?
73. How can you set the status and title for a modal dialog box? a) In the attributes of the corresponding screen. b) Before the corresp. call screen statement. c) In a PBO module of the corresponding screen. d) In the PAI module of the corresponding screen.
how can we maintain the previous version scripts to new version.
0 Answers DST Global Solutions,
what is different between kenerl mode and user mode?
is it acceptable if we declare multiple exceptions in same overridden method.
When we use Windows authentication mode
What language / script is used to validate web page
Programs in JAVA to get the remainder and quotient of given two numbers without using % and / operators?