- Hubs »
- tagged printf
1-9 of 9 Hubssort by Hot Best Latest
Linear search source code in C
n value vs time taken in milisec for linear search In computer science, linear search or sequential search is a method for finding a particular value in a list, that consists in checking every one of its elements, one at a time and in sequence,...
0 commentsFloyd's algorithm source code in C
The Floyd–Warshall algorithm compares all possible paths through the graph between each pair of vertices. It is able to do this with only Θ(|V|3) comparisons in a graph. This is remarkable considering that there may be up to Ω(|V|2) edges in the...
1 commentInsertion sort source code in C
n value vs time in milisec The most common variant of insertion sort, which operates on arrays, can be described as follows: Suppose there exists a function called Insert designed to insert a value into a sorted sequence at the beginning of an...
0 comments0/1 Knapsack
The knapsack problem or rucksack problem is a problem in combinatorial optimization: Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than a given...
0 commentsWrite a program using arrays to find the largest and second largest numbers out of given 50 numbers.
Write a program using arrays to find the largest and second largest numbers out of given 50 numbers. #include #include void main() { int a[50],i,max,smax; clrscr(); printf("Enter the value of...
2 commentsString and string pointer in C programming language
String in C programming language is very interesting topic to learn. We all know about arrays but here we put that in good use. Even you can character (char) pointer for string. C has lots of inbuilt functions which can reverse a string, can get length of string etc. In this C tutorial you can learn about how to read string from keyboard, save string in string variable and display string on screen.
1 commentC Language Function Pointer
Like C variables, function too has address and we can use this address to invoke function. So this tutorial is entirely devoted to function-pointer. But before we can call a function using we need to find out its address. So first we will see how to find memory address of a C function then we will call that function using its address.
24 commentsAPTITUDE QUESTIONS
TECHNICAL QUESTIONS ON 'C' LANGUAGE solve the following aptitude questions on c language. 1.main() { char i; for(i=0;i
1 comment








