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
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
Can a pointer point to null?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Write a program that accept anumber in words
Are c and c++ the same?
What is the use of f in c?
How can I invoke another program or command and trap its output?
What is the role of && operator in a program code?
Explain about the constants which help in debugging?
List the difference between a "copy constructor" and a "assignment operator"?
What is a #include preprocessor?
explain how do you use macro?
Explain the use of fflush() function?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
What is type qualifiers?