Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int n = 5;
- int n2 = 3;
- ///////////////////////////////////////////////
- int main()
- {
- double f = (double)n/(double)n2;
- printf("f = %.1f\n", f);
- }
- /*
- #include <stdio.h>
- int n = 77;
- int *p = &n;
- ///////////////////////////////////////////////
- int main()
- {
- n = (int)&p;
- printf("address p = %d\n", n);
- printf("address n = %d\n", &n);
- }
- */
- /*
- #include <stdio.h>
- int n = 77,
- nArr[19] = {10, 11, 12, 33};
- int *p = &nArr[1];
- ///////////////////////////////////////////////
- int main()
- {
- p += 5;
- n = *p;
- printf("n = %d\n", n);
- }
- */
- /*
- #include <stdio.h>
- #include <string.h>
- void Pokedex(char*p);
- ///////////////////////////////////////////////
- int main()
- {
- char Cat[70] ="Squirtle";
- Pokedex(&Cat[8]);
- printf("%s\n",Cat);
- }
- void Pokedex(char*p)
- {
- p[0]='D';
- p[1]=' ';
- p[2]=' ';
- p =p+2;
- p[1]='+';
- }
- */
- /*
- #include <stdio.h>
- #include <locale.h>
- #include <string.h>
- #define name n > 7
- /////////////////////////////////////////////////////
- int main()
- {
- setlocale(LC_ALL, "rus");
- int n;
- printf("Введите число: "); scanf("%d", &n);
- if(name) printf("Верно" );
- else printf("Неверно");
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement