An array is defined as the collection of similar type of data items stored at contiguous memory locations. For example, if we want to store the marks of a student in 6 subjects, then we don't need to define different variables for the marks in the different subject. Instead of that, we can define an array which can store the marks in each subject at the contiguous memory locations. An array index starts with 0. Syntax:- data_type array_name[array_size]; int marks[5]; Example:- #include<stdio.h> 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]); ...
Find the Solutions for your day to day Code Challenges

thanks for publishing this blog. Join SITHUB python training and get placement in IT comapnies with good salary.
ReplyDeleteI've perused your blog, and I must say that I appreciate the insightful content. If more individuals adopt these effective strategies, it has the potential to significantly enhance website performance.
ReplyDeleteCoding ninjas coupon code
Coding ninjas offers
Coding Ninjas discount
Coding Ninjas promo code
Coding Ninjas savings
Coding Ninjas discount code
Coding Ninjas coupon 2024
Coding Ninjas course discount
Coding Ninjas course deal
Coding Ninjas course special offer
you have written good content, we liked it very much: https://vataliyacomputerclasses.wordpress.com/2024/10/14/java-programming-classes-in-vadodara-gujarat/
ReplyDelete