Notes
Quiz 1: C Programming
Content of the notes (1)
Page 1
bsearch(&key, &base, num_items, size_element, compare_func)->Returns pointer to element in array matching value, NULL otherwise
qsort(&base, num, size, compare_func): Compare function allows flexibility, any type of variable for comparison and also to decide the order in which to be sorted. Compare function has 2 arguments, and return value for the function decides the order in which the two elements are to be placed relative to each other.
sscanf(&str, &format) : format = [=%*[width][modifiers]type=] * indicates data that is read is to be ignored from given width
Information
- Description
- Note on Quiz 1: C Programming, created by Sahil Deshpande on 23/03/2020.
- Created by
- Sahil Deshpande · Mar 2020
- Updated
- Mar 23, 2020
- Views
- 2
- Rating
More on Functions and Program Structure