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
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
Should I learn data structures in c or python?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is auto keyword in c?
Which is the best website to learn c programming?
What is typedef example?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What are pointers really good for, anyway?
Is it better to use malloc() or calloc()?
How pointer is different from array?
Explain how do you print an address?
Explain the use of keyword 'register' with respect to variables.
What is the use of function overloading in C?
What is the hardest programming language?
How can I implement a delay, or time a users response, with sub-second resolution?