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 |
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration
12 Answers HCL, Infosys, Microsoft,
What does #pragma once mean?
What is structure of c program?
What is the difference between malloc() and calloc() function in c language?
Given an unsigned integer, find if the number is power of 2?
What does the error message "DGROUP exceeds 64K" mean?
How reliable are floating-point comparisons?
What is the general form of a C program?
all c language question
What is the significance of an algorithm to C programming?