•  »
  • tagged printf

1-9 of 9 Hubssort by Hot Best Latest

Linear search source code in C65

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 comments    search elements computing
Floyd's algorithm source code in C69

Floyd'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 comment    formula paths algorithm
Insertion sort source code in C63

Insertion 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 comments    time quick speed
0/1 Knapsack61

0/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 comments    weight resource int
Write a program using arrays to find the largest and second largest numbers out of given 50 numbers.62

Write 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 comments    programming code roots
String and string pointer in C programming language76

String 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 comment    c programming c language c string
C Language Function Pointer75

C 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 comments    programming c programming udf
Cpp Data Types54

Cpp Data Types

C Plus Plus Data Types

0 comments    data type cout printf
APTITUDE QUESTIONS60

APTITUDE QUESTIONS

TECHNICAL QUESTIONS ON 'C' LANGUAGE solve the following aptitude questions on c language. 1.main() { char i; for(i=0;i

1 comment    education technical valid
Please wait working