what is the function of void main()?

Answers were Sorted based on User's Feedback



what is the function of void main()?..

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

what is the function of void main()?..

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

what is the function of void main()?..

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

what is the function of void main()?..

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

what is the function of void main()?..

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

what is the function of void main()?..

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

what is the function of void main()?..

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

what is the function of void main()?..

Answer / revathi

it has no meaning it does not return any value to the
operating system

Is This Answer Correct ?    12 Yes 13 No

Post New Answer

More C Interview Questions

with out using main how to execute the program?

2 Answers  


What is int main () in c?

0 Answers  


what does ‘#include’ mean?

1 Answers   TCS,


How can we allocate array or structure bigger than 64kb?

2 Answers   CSC,


Write a program in C for showing working of different logical operator in C. Your program should guide users with proper message/menu on the console.

3 Answers   HCL,


Why should I use standard library functions instead of writing my own?

0 Answers  


Why is the code below functioning. According to me it MUST NOT.

1 Answers  


How can I read a directory in a c program?

1 Answers   CSC,


In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }

1 Answers  


What are the types of functions in c?

0 Answers  


main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }

3 Answers  


Is reference used in C?

1 Answers  


Categories