What is meaning of "Void main" in C Language.
Answers were Sorted based on User's Feedback
Answer / sneh pranjal
Main() is the function from which a c program starts its execution.And every function returns some value after its execution.
So it important in most of the C program.If we dont need any return type we declare a function starting with void.
Means void is a return type.void means not returning any thing.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / glenn oflaria
the void meaning is the skill of faceless void that when you
are inside of it the time will stop for awhile.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / manoranjan kuiri
Main() is the function from which a c program starts its
execution.And every function returns some value after its
execution.
So it important in most of the C program.If we dont need any
return type we declare a function starting with void.
Means void is a return type.void means not returning any thing.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nagendra kumar
it is linguistic meaning and above person as excellent write answer
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sangeeta
void means nothing..
and it doesn,t return any value..
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / murthy.y.n
Actually I am not a master in C programming. With my little knowledge and common sense I try to give my view.
The basic dictionary meaning of "void" is nothing or space or empty.For example if two objects are separated by a small distance without any thing between them we, say the space between the two objects is void.
In computer program, we write a function to perform some action.After performing it should give the result (return the value).Some times the act or function may not calculate any thing and may not give any result.
For example ,you want to read some data ,or print hello world etc..
Then you can use the function as void.
Suppose after execution a function gives the sum as an integer we can write int main or float main etc..
so the result given by (return) a function is a float or integer or any such things..
I think I am able to explain in a simple way .If any errors ,please correct me
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rahul tripathi
main is also a function.Operating system will call this function.void means it returns nothing.when the function completed it task, it just goes out of scope.
http://www.cetpainfotech.com/technology/c-language-training
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the difference between structure and union?
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.
Why doesn't C support function overloading?
WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary display all contents?
6 Answers Finite Infotech, Lovely Professional University, Wipro,
What is structure in c definition?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
How the processor registers can be used in C ?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
C passes By value or By reference?
5 Answers Geometric Software, Infosys,
In header files whether functions are declared or defined?
can i know the source code for reversing a linked list with out using a temporary variable?