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
can we change the default calling convention in c if yes than how.........?
how could explain about job profile
How is a null pointer different from a dangling pointer?
Write a function that will take in a phone number and output all possible alphabetical combinations
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is a char c?
What is include directive in c?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What is the difference between exit() and _exit() function in c?
How can I convert a number to a string?
Why is sizeof () an operator and not a function?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is string in c language?
What is the size of enum in c?