program to find a smallest number in an array
Answer Posted / subash
&a[i]);
i=0;
for(int j=0;j<n-1;j++)
{
if(a[j+1]<a[j])
{
temp=a[j+1];
a[j+1]=a[j];
a[j]=temp;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How are structure passing and returning implemented?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
If the size of int data type is two bytes, what is the range of signed int data type?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
How to set file pointer to beginning c?
write a program to print largest number of each row of a 2D array
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is data structure in c programming?
What is a class c rental property?
What is an array in c?
How many levels of pointers have?
What does *p++ do?
what is the syallabus of computer science students in group- 1?
What is a pragma?