program to find a smallest number in an array
Answer Posted / atul kumar
#include<iostream.h>
void main()
{
int a, b[4]=[1,2,3,4];
a[0]=b[0];
for(i=1;i<=5;i++)
{
if(a>b[i])
{
a=b[i];
}
}
cout<<"smallest num"<<a;
}
| Is This Answer Correct ? | 7 Yes | 18 No |
Post New Answer View All Answers
Explain how do you use a pointer to a function?
Explain the properties of union.
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
How would you obtain the current time and difference between two times?
What is the collection of communication lines and routers called?
What is enumerated data type in c?
How does placing some code lines between the comment symbol help in debugging the code?
How can type-insensitive macros be created?
List out few of the applications that make use of Multilinked Structures?
why return type of main is not necessary in linux
What is #error and use of it?
What is scope of variable in c?
What is a function simple definition?
Differentiate Source Codes from Object Codes
How can variables be characterized?