top of page

One-dimensional Arrays

May 23, 2021
1 min read

One-dimensional arrays are data structures that contain data types of the same type. In the form of a group of related memories (contiguous).


Example : fill index 2 array C by 5




Array Declaration

Determined by the type of each element of the number of elements required by each array so that the computer prepares a certain amount of memory.



<string.h> Functions

strlen is used to return the length of the string.

strcpy is used to copy strings.

strcat is used to merge strings, delete a part of a string, insert a string into a string.

strstr is used to return the position of the substring in a string.

toupper is used to change to uppercase.

Recent Posts

See All
Loop

Introduction Examples of algorithms in everyday life : Example 1 : To finish eating a plate of rice (initial conditions) Mouthfuls of a...

 
 
 
Subprogram dan Rekursi

metode : divide & conquer (dibagi-bagi menjadi bagian yang lebih kecil, lalu selesaikan masalah yang dihadapi) Prosedur Prosedur...

 
 
 
Selection Structure

The selection structure is used to make the selection of several alternatives of the given conditions. Relational Operators Truth Table...

 
 
 

Comments


Post: Blog2_Post
bottom of page