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 a = 2; | |
| int* p = NULL; | |
| p = &a; | |
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 a; // Tamanho que o usuário irá digitar | |
| int *ponteiro; // Ponteiro | |
| // Mensagem Amigável | |
| puts ("Qual o tamanho de vetor que desejas?"); |
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(void){ | |
| int a = 0; | |
| scanf ("%d", &a); | |
| if (a > 10) puts ("A é maior que 10"); | |
| else puts ("A é menor ou igual a 10"); | |
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(void){ | |
| int a; | |
| printf ("%p", &a); | |
| return 0; | |
| } |
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 (void){ | |
| int d = 8; | |
| switch (d){ | |
| case 1: | |
| c=a+b; |
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(void){ | |
| // CONDICAO | |
| if ( (2 == 2 || 2==3 || 2 > 3 || 2 < 3) & !(2<1)){ | |
| printf ("Olá mundo\n"); | |
| } | |
| } |
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 (void){ | |
| printf ("Ola Mundo!\n"); | |
| return 0; | |
| } |
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 (void){ | |
| int Quantidade = 0; | |
| scanf ("%d", &Quantidade); | |
| printf ("%d\n",Quantidade); | |
| int Cedulas = ( Quantidade - (Quantidade%100))/100; | |
| printf ("%d nota(s) de R$ 100,00\n", Cedulas); |
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 (void){ | |
| printf ("OBI na UDESC 2015!"); | |
| printf ("Seja bem vindo!"); | |
| return 0; | |
| } |
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 Mat[100][100] = {0}; | |
| int Sun[100][100] = {0}; | |
| int Tam = 0; | |
| void ResetSun (){ | |
| int i, j; | |
| for (i = 0; i < 100; i++){ | |
| for (j = 0; j < 100; j++){ |