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
|
479 Discussions
|
Please Login in order to post a comment
You can take look at my code as it is working according to given conditions!!
include
include
include
include
int main() {
}
Here is amazing solution - hackerRank 1D arrays in c solution
int main() {
}
include
int main(){
int i=0;
int marks[5];//declaration of array
marks[0]=80;//initialization of array
marks[1]=60;
marks[2]=70;
marks[3]=85;
marks[4]=75;
//traversal of array
for(i=0;i<5;i++){
printf("%d \n",marks[i]);
}//end of for loop
return 0;
}