We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c396fee commit 54ffd45Copy full SHA for 54ffd45
Count array using sizeof operator.c
@@ -0,0 +1,8 @@
1
+#include <stdio.h>
2
+int main()
3
+{
4
+ int arr[]={1,2,3,4,5};
5
+ int length = sizeof(arr)/sizeof(arr[0]);
6
+ printf("Number of elements present in given array:%d",length);
7
+ return 0;
8
+}
0 commit comments