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 |
wat s the meaning of (int *)p +4;
How does placing some code lines between the comment symbol help in debugging the code?
who is first prime minister in india??
52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
what is the use of ~ in c lang?????
main() { charx; while (x=0;x<=255;x++) printf("\nAscii value %d Character %c,x,x); }
i want to have a program to read a string and print the frequency of each character and it should work in turbo c
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
whats the use of header file in c?
What is the main difference between calloc () and malloc ()?
What is the use of structure padding in c?