Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int n = 105;
- char sz[4] = "JVC";
- //////////////////////////////////////////////////////////
- int main() //
- {
- memcpy(&n, sz, 4);
- printf("n = %s\n", &n);
- }
- /*
- #include <stdio.h>
- //////////////////////////////////////////////////////////
- int main() //
- {
- int b = 5,
- m = 0,
- sum = 0,
- nResulr = 0;
- int array[11] = { 0,1,2,3,4,5,6,7,8,9,10 };
- for(int i = 0; i < 11; i++)
- {
- if(array[i] > b)
- {
- sum += array[i];
- m++;
- }
- }
- nResulr = sum / m;
- printf("nResulr = %d\n ", nResulr);
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement