You miss the initialization of _N, so it will never be equal to N and you will rest into the while loop forever
More Related Contents:
- Algorithm to find the smallest number in an array in C [closed]
- Recursive C function
- Fast way to tokenize a string in c
- How to remove blank spaces from buffer [closed]
- What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?
- Algorithm: efficient way to remove duplicate integers from an array
- What is the fastest substring search algorithm?
- how to rasterize rotated rectangle (in 2d by setpixel)
- Point in Polygon Algorithm
- What common algorithms are used for C’s rand()?
- Matrix multiplication: Small difference in matrix size, large difference in timings
- Enumerate factors of a number directly in ascending order without sorting?
- Project Euler Question 14 (Collatz Problem)
- How to find the element of an array that is repeated at least N/2 times?
- read line by line in the most efficient way *platform specific*
- How do you print the EXACT value of a floating point number?
- Time complexity of a recursive algorithm
- Finding all the unique permutations of a string without generating duplicates
- Print all permutation in lexicographic order
- Perceptron learning algorithm not converging to 0
- Print all the permutations of a string in C
- Given an audio stream, find when a door slams (sound pressure level calculation?)
- find if 4 points on a plane form a rectangle?
- Linked list recursive reverse
- Generating a uniform distribution of INTEGERS in C
- Reductions in parallel in logarithmic time
- Finding out the duplicate element in an array
- Does C have any tools for doing string addition?
- Variable Sized Arrays vs calloc in C
- A possible algorithm for determining whether two strings are anagrams of one another? [closed]