Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int nArr[10] = {70, 71, 72} ;
- /////////////////////////////////////////////////////
- int main() //
- {
- printf(" nArr[0] = %7d\n", nArr[0]); // Первое свойство
- printf("address of nArr[0] = %d \n", &nArr[0]); // Второе свойство
- printf(" nArr[1] = %7d\n", nArr[1]); // Первое свойство
- printf("address of nArr[1] = %d \n", &nArr[1]); // Второе свойство
- }
- /*
- #include <stdio.h>
- void mult(int n);
- /////////////////////////////////////////////////////
- int main() //
- {
- int n = 1;
- while(n < 10)
- {
- mult(n);
- n++;
- }
- return 0;
- }
- /////////////////////////////////////////////////////
- void mult(int n) //
- {
- for(int i = 1; i < 10; i ++)
- {
- printf("%d * %d = %2d\n", n, i, n*i);
- } printf("\n");
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement