how to find greatet of 10 numbers without using array?
Answers were Sorted based on User's Feedback
int main()
{
int i, num;
int greatest=0;
for(i=0; i<10; i++)
{
scanf("%d", &num);
if(num > greatest)
greatest = num;
}
printf("greatest = %d", greatest);
return 0;
}
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / afreen chitragar
int main()
{
int i, num;
int greatest=0;
for(i=0; i<10; i++)
{
scanf("%d", &num);
if(num > greatest)
greatest = num;
}
printf("greatest = %d", greatest);
return 0;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / guest
using ? And & operator wa can find out the soution
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / aman
int main()
{
int i, num;
int greatest=0;
for(i=0; i<10; i++)
{
scanf("%d", &num);
if(num > greatest)
greatest = num;
}
printf("greatest = %d", greatest);
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Program to find larger of the two numbers without using if-else,while,for,switch
which of 'arrays' or 'pointers' are faster?
Why do we use int main?
write a program in c to read array check element is present or not?
How can I open files mentioned on the command line, and parse option flags?
Determine the result of performing two successive block transfers into the same area of a frame buffer using the binary arith operations
How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance
what is call by value and call by reference
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
mplementation of stack using any programing language
Are the expressions * ptr ++ and ++ * ptr same?
What does *p++ do? What does it point to?