Given an array of length N containing integers between 1
and N, determine if it contains any duplicates.
Answer Posted / ramkumar
What if the array is
1) 1,2,3,4,5
2) 1,2,2,5,5
both sums to 15!!
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What are formal parameters?
What is this infamous null pointer, anyway?
Is sizeof a keyword in c?
How can I read and write comma-delimited text?
What is a nested loop?
Describe the order of precedence with regards to operators in C.
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
Here is a good puzzle: how do you write a program which produces its own source code as output?
What is the difference between single charater constant and string constant?
What does the characters “r” and “w” mean when writing programs that will make use of files?
can we change the default calling convention in c if yes than how.........?
In a header file whether functions are declared or defined?
What Is The Difference Between Null And Void Pointer?
What does the function toupper() do?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)