Dearest how can i find three smallest values in array
I solve it by sorting array in ASC Order then i print first three values but i want to another efficient way can you have any efficient way
User Profile
Collapse
-
Find 3 smallest values in array
-
0) Insert atleast one record then goto table Design View
1) Delete AutoNumber Field
2) Click on Save but not close the table
3) Now create Field and give the autonumber field then
save now show datasheet view... -
C, C++ and Java Expression same but results different
In Turbo C 3.0
#include<conio. h>
#include<stdio. h>
void main(void)
{int x=-250;x = --x + --x + --x;printf("%d",x);getch();}//it gives: -259
In Visual C++ 6.0
#include<iostre am>
using namespace std;
void main(void)
{int x=-250;x = --x + --x + --x;cout <<x;}//it gives: -257
In Java
class Test
{
...
No activity results to display
Show More
Leave a comment: