This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gcc -c hello_world_1.c | |
$ gcc Hello_World_1.o -o hello_world_1.exe | |
$ hello_world_1-c | |
$ ls -lah | |
$ nm hello_world_1.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* My first program in C. The used and abused hello world :D | |
* | |
* Author: | |
* carlosal1015 :D | |
* | |
* Notes: | |
* This is just an example. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
/*include<stdlib.h> contiene las variables para los valores de retorno. | |
EXIT_SUCCESS equivale a 0. | |
EXIT_FAILURE equivale a 1.*/ | |
int main(void){ | |
/* Variables*/ | |
char x = 'x'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void){ | |
int i, j; | |
char x = 'x'; | |
char y1[] = "hola"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Programa que suma dos números complejos. | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define complexi struct complex | |
struct complex{ | |
/*Una estructura es una agrupacion de tipo de datos. | |
Make realiza intrucciones*/ | |
int re; | |
int im; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char *argv[]){ | |
/* | |
* argc: Es el nùmero de argumentos que recibe nuestro programa | |
* cuando es llamado desde la lìnea de comandos (y desde cualquier otro lado) | |
* | |
* | |
* | |
* El primer argumento es el nombre del ejecutable, por lo cual, si no le pasamos argumentos al programa, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nm -help | |
$ ./hello_world_1.exe | |
$ ls -1 | |
$ mv hello_world | |
$ mkdir example-02 | |
$ ls -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gcc /c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ hello echo1.c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ usr/bin | |
$ gcc -c hello_echo_1.c -o |
OlderNewer