We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C
- Arrays and Strings
- 1D Arrays in C
- Discussions
1D Arrays in C
1D Arrays in C
Sort by
recency
|
496 Discussions
|
Please Login in order to post a comment
Its simplicity and efficiency make it a foundational tool for understanding how computers work at a low level, while still being versatile enough for everything from operating systems to embedded systems. http cricbet99.club
this problems can be resolved without array #include
include
void solve(){ int n; scanf("%d",&n); int sum = 0; // int *arr = malloc((n) * sizeof(int)); for(size_t i = 0;i < n;i++){ int data; scanf("%d",&data); sum += data; } printf("%d",sum);
} int main(){ solve(); return 0; }
include
include
include
include
int main() {
}
Here is 1D Arrays in C problem solution - https://programmingoneonone.com/hackerrank-1d-arrays-in-c-solution.html
include
include
include
include
int main(){ int n, sum=0; scanf("%d",&n);
}