TALLER CEFOP

CEFOP - Mauricio Reyes Schencke

Foros

Responder Responder | Buscar | Ultimo mensaje | Full review

  1 2 3 4 5 6 7 8 9 10 ... 1568 pager_next pager_last

aPEvIGDySJVshbk

 
Marzo 22, 2015 at 07:20 PM

There is a reason why C ausemsd that every function returns int, unless specified otherwise: it's the cheapest way to pass the value to the caller. On practically any implementation, return value is in the register. If the caller doesn't use the return value, it doesn't cost him anything.Now, once you know this, you can see that the most convenient error handling mechanism in C is by using return values.Now "main" is the function that is called by the run time library which is called by the operating system. And RTL and OS have its declaration as int main no matter how you declare main in your text.So int main is expected to signal to the caller if the program execution was succesfull. If you don't return anything, the caller will get the garbage, whatever was in the register at the moment of the return.So you should really get used to this idiom. It's very convenient too. Typically 0 means "everything ok" and other values specific error codes. Take a look at the simplest example: f1 = fopen( if ( !f1 ) return 1; f2 = fopen( if ( !f2 ) { fclose( f1); return 2; } ... return 0;(Off topic: Thanks for a very good blog, I often find interesting stuff here)

Quote Quote

 
Mayo 16, 2017 at 10:02 AM

Buying Cialis In Israel [url=http://byuvaigranonile.com]viagra[/url] Finasterida Generico Resultados Propecia Viagra Levitra Lequel Choisir What Is Keflex Drug Family

Quote Quote

 
Junio 23, 2017 at 01:28 PM

Acheter Du Levitra Contre L Impuissance [url=http://priligy-online-pharmacy.priliorder.com]Priligy Online Pharmacy[/url] Comprare Cialis Slovenia Greenline Pharmacy [url=http://buy-kamagra-online-cheap.kamagpills.com]Buy Kamagra Online Cheap[/url] Viagra Svizzera Finistride 1mg Uk No Prescription [url=http://order-viagra-pills.via100mg.com]Order Viagra Pills[/url] Buy Kamagra Dublin Viagra Ohne Rezept Kaufen In Berlin [url=http://best-levitra.buylevi.com]Best Levitra[/url] Stendra 50mg No Physician Approval In Internet

Quote Quote

 
Agosto 30, 2017 at 06:10 AM

[url=http://acheteramoxicilline500enligne.com/]amoxicilline 500 gelules[/url]
amoxicilline 500 mg
amoxicilline 500 mg biogaran
amoxicilline 500

Quote Quote

 
Agosto 30, 2017 at 06:10 AM

[url=http://acheterclomidenlignefrance.com/]clomid acheter[/url]
acheter clomid sur internet
acheter clomid en france
acheter clomid

Quote Quote

Responder

  1 2 3 4 5 6 7 8 9 10 ... 1568 pager_next pager_last

Administrador(es) del curso CEFOP : Mauricio Reyes Schencke
Administrador de Plataforma E-Learnig Claroline :
Impulsado por Claroline © 2001 - 2011