Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

+1 vote
3.5k views
every function returns to main function but to whom main function return and what value?
asked by

1 Answer

0 votes
It returns the value to the OS or whatever process launched it. If you launched your program from a batch file then the batch file can detect this return value. If your program is spawned or launched by another program then the return value goes to that parent program or process.

it returns int type value.
answered by Jr Member (620 points) 3

Related questions

0 votes
1 answer 77 views
77 views asked by rajesh Guru (39.1k points) 11 24 38
0 votes
1 answer 84 views
+1 vote
2 answers 123 views
0 votes
1 answer 91 views
...