What is linear search?
Answer / Santosh Kumar Kanhiya
Linear Search is a simple searching algorithm that iterates through each element of an array from the beginning until the desired element is found or the end of the array is reached. It checks each element one by one, and if it finds the target element, it returns its index. If the target element is not present in the list, then linear search returns -1.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf("%d",i)-1; }
What is the difference between void main and main in c?
How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include<stdio.h>...
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
Write a function that will take in a phone number and output all possible alphabetical combinations
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is the output of the below program and how it is? void main() { static int var=5; printf("%d",var--); if(var) main(); }
8 Answers MindFire, TCS, Tech Mahindra,
Explain the concept and use of type void.
How to reverse alternate words in a given line of string For Eg: my name is narasimha output : my eman is ahmisaran
how 2 compile & execute c program with out using editor?
WHO WROTE C LANGUAGE?
difference between memcpy and strcpy