Program in C language
Write and execute the following code to create a 1-dimensional int array.
#include int main(){int arr[]={10,20,30,40,50}; int n; n=sizeof(arr)/sizeof(int); printf("Number of elemenets are: %d\n",n); return 0;}
int main()
{
int arr[]={10,20,30,40,50};
int n;
n=sizeof(arr)/sizeof(int);
printf("Number of elemenets are: %d\n",n);
return 0;
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here