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


Please Help Members By Posting Answers For Below Questions

What is the difference between printf and scanf in c?

869


Write program to remove duplicate in an array?

678


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

764


Explain how can I open a file so that other programs can update it at the same time?

702


What is spark map function?

670






What is a loop?

667


Is there any data type in c with variable size?

738


What is the general form of #line preprocessor?

673


What is the process of writing the null pointer?

696


If the size of int data type is two bytes, what is the range of signed int data type?

682


What is a program flowchart?

698


How is pointer initialized in c?

675


I came across some code that puts a (void) cast before each call to printf. Why?

805


What language is c written?

655


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1953