Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- rgsbuap
- Date:
- 2019-10-08
- Revision:
- 27:eb32f100130f
- Parent:
- 26:29f649949409
- Child:
- 28:868b283c5f77
File content as of revision 27:eb32f100130f:
#include "mbed.h"
Serial pc(USBTX,USBRX);
//Funcion sin argumento y con retorno
int funcion3(void);
int main()
{
int variable;
variable = funcion3();
pc.printf("La variable retornada es %d \r\n", variable);
}
int funcion3(void)
{ int variable_de_funcion3 = 10;
return variable_de_funcion3;
}