Answer Posted / trushali
when we write void main it means its not returning any value
to main function,so we do not need write return 0 at the end
of program.
but when we write main only then by default compiler
consider it as int main,and at the end we need to write
return 0(means successful completion of the program without
any problem).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the types of arrays in c?
How do c compilers work?
Why C language is a procedural language?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is the purpose of the statement: strcat (S2, S1)?
What are local static variables?
Can we declare function inside main?
What is s or c?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Why header files are used?
What are the types of unary operators?
What is the maximum no. of arguments that can be given in a command line in C.?
How will you write a code for accessing the length of an array without assigning it to another variable?
What is a spanning Tree?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f