why main() method should not return any value
Answer Posted / 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 |
Post New Answer View All Answers
how do i add a column dynamically in a table by using java application?
Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.
what is the difference between read the data from table and infotype
what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct
Can any one give an example (Source Code) on virtual function implemetation in Java?
How to call a C++ function which is compiled with C++ compiler in C code?
Find out the list of authorization objects which contains activity as a field? Thanks in advance.
5.Call by value and Call by reference with program?
Have you used callsymputx? what points need to be kept in mind when using it?
Find out the list of roles which gives access to GUI activities? thanks in advance
Which design patterns have you used?
hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern
Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.
what is the difference between SCAN AND CHECK,LOKUP AND XFOOT? where we can use thease opcodes? Can any body tell me real time senariao with example?
how can i create report in abap to insert data in table pa0002 using insert command