![]() ![]() ![]() Return -1 //if the value we are looking for doesn't exist, return -1 P = (ptrnode)malloc(sizeof(struct node)) Sequential Search On Unordered Linked List Data Kasus data terurut menurun Source Code Struktur Array Printf("\nData (%d) was found at index ", x, ordered_search(data, size, x)) Printf("Input the data/value you want to search = ") if array list not in Ascending/Descending order this function have TRUE value when array is in descending order Void fillData(int data, int *size) //fill data into arrayīool checkDescending(int data, int size) #define MAX 100 //maximum size of array can be used Sequential Search On Unordered Array Data ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |