Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ////////////////////////////////////////////////////
- struct TT //
- {
- int n;
- float fWeigt;
- };
- TT d3, d2;
- int n;
- //////////////////////////////////////////////////// unsigned
- int main() //
- {
- TT d4;
- d2.n = 11;
- d2.fWeigt = 37.843;
- printf("d2.fWeigt = %.3f\n", d2.fWeigt);
- scanf("%d", &d2.n);
- }
- /*
- #include <stdio.h>
- ////////////////////////////////////////////////////
- struct TT //
- {
- int n;
- float fWeigt;
- }d1, d2, arr[22];
- TT d3;
- //////////////////////////////////////////////////// unsigned
- int main() //
- {
- TT d4;
- d2.n = 11;
- d2.fWeigt = 37.843;
- printf("d2.fWeigt = %.3f\n", d2.fWeigt);
- scanf("%d", &d2.n);
- }
- */
- /*
- #include <stdio.h>
- int n = 47, // hykjhkjh
- *p = &n, // ooljklj
- &a = n;
- //////////////////////////////////////////////////// unsigned
- int main() //
- {
- printf("address n = %7d\n", &n);
- printf("address n = %7d\n", p);
- printf("address n = %7d\n", &a); a -= 17;
- printf(" n = %7d\n", n);
- }
- */
- /*
- #include <stdio.h>
- int n = 97;
- int *p = &n;
- int &a = n;
- //////////////////////////////////////////////////// unsigned
- int main() //
- {
- printf("address n = %7d\n", &n);
- printf("address n = %7d\n", p);
- printf("address n = %7d\n", &a); a = a - 17;
- printf(" n = %7d\n", n);
- }
- */
- /*
- #include <stdio.h>
- int n = 55;
- //////////////////////////////////////////////////// unsigned
- int main() //
- {
- int nRes = n%7;
- printf("remainder = %d\n", nRes); nRes = n/7;
- printf("Group = %d\n", nRes);
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement