Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int n = 96;
- int Max(int, int);
- int (*min)(int, int) = Max;
- //////////////////////////////////////////
- int main()
- {
- printf(" Max = %d\n", Max);
- printf(" min = %d\n", min);
- printf("&min = %d\n", &min);
- n = min(-7, 5);
- printf("Max = %2d\n", n);
- }
- //////////////////////////////////////////////////////
- int Max(int n1, int n2)
- {
- if(n1 > n2) return n1;
- return n2;
- }
- /*
- #include <stdio.h>
- #define ODIN 111
- int n = 96,
- a[33];
- int Max(int, int);
- //////////////////////////////////////////
- int main()
- {
- printf("&Max = %d\n", ODIN);
- }
- //////////////////////////////////////////////////////
- int Max(int n1, int n2)
- {
- if(n1 > n2) return n1;
- return n2;
- }
- */
- /*
- n = Max(7, 5);
- printf("Max = %2d\n", n);
- float f = Max(1.5, 5.8);
- printf("Max = %.1f\n", f);
- */
- /*
- #include <stdio.h>
- int n = 96;
- int Max( int, int);
- double Max(double, double);
- //////////////////////////////////////////
- int main()
- {
- n = Max(7, 5);
- printf("Max = %2d\n", n);
- float f = Max(1.5, 5.8);
- printf("Max = %.1f\n", f);
- }
- //////////////////////////////////////////////////////
- int Max(int n1, int n2)
- {
- if(n1 > n2) return n1;
- return n2;
- }
- //////////////////////////////////////////////////////
- double Max(double f1, double f2)
- {
- if(f1 > f2) return f1;
- return f2;
- }
- */
- /*
- #include <stdio.h>
- int n = 96;
- //////////////////////////////////////////
- int main()
- {
- n = n >> 5;
- printf("%2d ", n);
- }
- */
- /*
- #include <stdio.h>
- using namespace std;
- int main()
- {
- int a[2][10];
- for (int i = 0; i < 20; ++i)
- {
- a[0][i] = 1;
- if(i > 8)
- if(i < 11) a[0][i] = i;
- }
- for (int j = 0; j < 20; ++j)
- {
- printf("%2d ", a[0][j]);
- if (j == 9) printf("\n");
- }
- printf("\n");
- }
- */
- /*
- /////////////////////////////////////////////////////////////////////
- int main()
- {
- int a[2][10];
- for(int i = 0; i < 2; ++i)
- {
- for (int j = 0; j < 10; ++j)
- {
- a[i][j] = 1;
- }
- }
- a[1][0] = 10;
- a[0][9] = 9;
- for(int j = 0; j < 20; ++j)
- {
- printf("%2d ", a[0][j]);
- if(j == 9) printf("\n");
- }
- printf("\n");
- }
- */
- /*
- #include <stdio.h>
- using namespace std;
- /////////////////////////////////////////////////////////////////////
- int main()
- {
- int a[2][10];
- for(int i = 0; i < 2; ++i)
- {
- for (int j = 0; j < 10; ++j)
- {
- a[i][j] = 1;
- }
- }
- a[1][0] = 10;
- a[0][9] = 9;
- for(int i = 0; i < 2; ++i)
- {
- for(int j = 0; j < 10; ++j)
- {
- printf("%2d ", a[i][j]);
- }
- printf("\n");
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement