Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

whitch value return void main?

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


Please Help Members By Posting Answers For Below Questions

What are the types of arrays in c?

1181


How do c compilers work?

1136


Why C language is a procedural language?

1039


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16787


What is the purpose of the statement: strcat (S2, S1)?

1171


What are local static variables?

1154


Can we declare function inside main?

1002


What is s or c?

1066


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1158


Why header files are used?

1118


What are the types of unary operators?

1191


What is the maximum no. of arguments that can be given in a command line in C.?

1154


How will you write a code for accessing the length of an array without assigning it to another variable?

1051


What is a spanning Tree?

1595


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

2157