what is the function of void main()?
Answers were Sorted based on User's Feedback
Answer / khemnath chauhan
void main()
//this function indicate the starting of the program furthur
tells that it has non return value.
| Is This Answer Correct ? | 40 Yes | 12 No |
Answer / chirag sathvara
void main() function,it will flow of the program
execution,what are the next step of line to execute.
for example,
void main()
{
int b=0
cout<<b;
int c=0;
cout<<c;
}
/*it will indicate first create object of int type,after it
will genereate next statement.*/
| Is This Answer Correct ? | 29 Yes | 10 No |
Answer / anu
void main() is a function. It is used in a program when a
function has no return value.
| Is This Answer Correct ? | 19 Yes | 0 No |
Answer / amit shrivastava
main is the special function,,,,,,,, wch contain the
defination of u r program or we can say it contain the main
body of u r program.It is called as special funtion becoz
it is invoked by the compiler itself,no any other function
call the main().
the void is a return type which is use when no meaning ful
value is to be return
| Is This Answer Correct ? | 18 Yes | 9 No |
Answer / bunny
It marks the beginning of the main body of the program and
also ensures that it is properly executed. Basically, void
main() creates the base for the program.
| Is This Answer Correct ? | 10 Yes | 5 No |
Answer / shaheen
The expectation you have from a function is the return type
you can use(returntype) is called void here the example
void FunctionName(); here void is used when no meaning ful
value is return(simply int c=0; it does not return a value)
shaheen(mca)
kaikalur
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / sonia
it shows the beginning of the program n this function is
called by the complier.here void means main()wont return any
value.
| Is This Answer Correct ? | 7 Yes | 7 No |
Answer / revathi
it has no meaning it does not return any value to the
operating system
| Is This Answer Correct ? | 12 Yes | 13 No |
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
0 Answers College School Exams Tests,
In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Can static variables be declared in a header file?
What is the difference between new and malloc functions?
implement general tree using link list
What is #include cctype?
How will you allocate memory to double a pointer?
What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.
int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain me output????
what would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }