Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main()
- {
- int arr[10]={0};
- unsigned int num1, num2;
- num1 = sizeof arr/sizeof arr[0];
- num2 = sizeof arr/sizeof *arr;
- printf("%d %d\n", num1, num2);
- return 0;
- }
- /*
- output:
- 10 10
- */
Advertisement
Add Comment
Please, Sign In to add comment