top of page
Writer's pictureD A Rosi Arsida Wardani

One-dimensional Arrays

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...

Comentários


Post: Blog2_Post
bottom of page