answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How will this program benefit you when you return to your country?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why do you have to use the return type for the main function in c language i mean to what does the main function have to return the value to?

It returns the value to the operating system 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 prgoram or process. One more thing is that you can write main() without the return type and it will be absolutely correct


What key moves the cursor to the next line in c program?

The return key.


Explain the structure of c program with an suitable example?

Basic structure of a C program is /* Documentation section */ /* Link section */ /* Definition section */ /* Global declaretion section */ /* Function section */ (return type) (function name) (arguments...) void main() { Declaration part Executable part (statements) } /* Sub-program section */ (return type) (function name 1) (arguments...) (return type) (function name 2) (arguments...) . . . (return type) (function name n) (arguments...) Basic structure of a C program is /* Documentation section */ /* Link section */ /* Definition section */ /* Global declaretion section */ /* Function section */ (return type) (function name) (arguments...) void main() { Declaration part Executable part (statements) } /* Sub-program section */ (return type) (function name 1) (arguments...) (return type) (function name 2) (arguments...) . . . (return type) (function name n) (arguments...)


Does a subprogram always return a value to the program or subprogram that calls it?

No. In some languages PROCEDUREs don't return a value, FUNCTIONs do; in C (and derivatives) return-type void means no return value. Example:void Hello (const char *msg) { puts (msg); }


Is it possible to place a return statement anywhere in 'C' program?

No. Return statements can only appear within a function body, but they can be placed anywhere within that body. If the function returns a value, then the return statement must also return a value of the same type.

Related questions

Which retirement saving program has a benefit that will depend on your yearly contribution and the rate of return on invested assets?

Defined Contribution Plan


What is benefit of a model EEO program?

A benefit of a model EEO program is?


What is the sentence of benefit?

Do you believe President O'Bama's health care plan will benefit the country? We benefit from donating money to charity because we receive an income tax deduction. Do you think my daughter would benefit from the summer school program? One benefit that company offers is a four week vacation for all employees. Who stands to benefit from a change in the law? For Mom's benefit, please don't start an argument on Easter Sunday. The budget increases will benefit every school district in the country.


How can you benefit from a high yield investment?

A high-yield investment program is an investment scam that promises unsustainable high return on investment by paying previous investors with the money invested by new investors. The only benefit is that you may get your money back. They are to risky.


How does citizenship benefit a country?

it benefit a country if there are no citizen how are going to vote in an election who isgoing to support our country.


Harding's program for post-war America?

Harding's program was referred to as "Return to Normalcy." He favored business and limited immigration, and goals of his programs were geared toward returning the country to normalcy.


What is the duration of Return to Oz TV program?

The duration of Return to Oz - TV program - is 3060.0 seconds.


How will the proposed training benefit your country?

how will the proposed training benefit my country if I am seeking for training


When was Return to Oz - TV program - created?

Return to Oz - TV program - was created on 1964-02-09.


How do you think you will benefit professionally from the program?

wow


How could the country benefit from a minority government?

you can benefit by the country having not many limits and having them face your problems fro ur country


How does tourism benefit a country?

Tourism adds to the reputation and diversity of a country. The main benefit is the influx of money into the economy.