Design a program using an array that searches a number if it
is found on the list of the given input numbers and locate
its exact location in the list.
Answer Posted / vignesh1988i
small mistake in above program.... in last printf pl. change
*(*(ptr+i)) as (*(ptr+i))
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is structure in c definition?
How are 16- and 32-bit numbers stored?
What is the difference between NULL and NUL?
What is the scope of local variable in c?
Can you write a programmer for FACTORIAL using recursion?
What is advantage of pointer in c?
What is function what are the types of function?
Differentiate between static and dynamic modeling.
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is the difference between procedural and functional programming?
Explain what is output redirection?
What is pass by value in c?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Describe how arrays can be passed to a user defined function
Explain how do you override a defined macro?