Telegramy
Articles
About
« Rev
@programminginc
1772
Fwd »
Jussi
Just use recursive calls
Anonymous
Just use recursive calls
recursive calls are more complex
Jussi
Then I cannot help
Jussi
Im writing from mobile and the code is somewhat hard to follow on a small screen
Anonymous
shoud i create an array dynamically
Anonymous
Im writing from mobile and the code is somewhat hard to follow on a small screen
no problem dude thnx for the help
Jussi
shoud i create an array dynamically
It would be more runtime complex but not require as much space yeah
Jussi
Are you writing embedded application?
Anonymous
no
Anonymous
just simply trying to solve it
Jussi
Why should it be space optimized then?
Jussi
Ok
Anonymous
my friend sent me this
Jussi
Ok ok
Anonymous
ok if found will post the solution
Anonymous
2^8=2^4+2^4
Lol no
Anonymous
It's not right
Anonymous
2^8 = 2⁴ × 2⁴
Anonymous
2^8 = 2⁴ × 2⁴
sry
Morgan
/hey
Anonymous
found this
Anonymous
int pow(int a,int b) { int k=0; int ass=1; while(b>1) { if(b%2==0) { a=a*a; b=b/2; } else if(b%2!=0) { ass=ass*a; a=a*a; b=(b-1)/2; k++; } } if(k>0) return ass*a; return a; }
Anonymous
without using array @jussihi
Jussi
without using array @jussihi
Nice 👍
Mohd
Why 'int' is used before 'main' in C language
Mat
Why 'int' is used before 'main' in C language
Read how to do a proper function declaration in C
jack
your bio is the answer lol!
lol
jack
Why 'int' is used before 'main' in C language
it just shows what type of data is going to be returned from where it has called
X3eRo0
😅hello
X3eRo0
Does anyone know
X3eRo0
How do I convert memory represented bytes of a long double back to long double
MᏫᎻᎯᎷᎷᎬᎠ
How do I convert memory represented bytes of a long double back to long double
I think you mean casting variables
X3eRo0
So
X3eRo0
I
X3eRo0
Calculated
MᏫᎻᎯᎷᎷᎬᎠ
But you are casting to the same type
X3eRo0
The solution to cosl(x)=x
MᏫᎻᎯᎷᎷᎬᎠ
Long double to long double
MᏫᎻᎯᎷᎷᎬᎠ
Hmm
X3eRo0
Wait
X3eRo0
Listen
MᏫᎻᎯᎷᎷᎬᎠ
The solution to cosl(x)=x
I dunno that
X3eRo0
Linten
X3eRo0
First
X3eRo0
😅
MᏫᎻᎯᎷᎷᎬᎠ
What
MᏫᎻᎯᎷᎷᎬᎠ
I'm listening
X3eRo0
Yeah
X3eRo0
So
X3eRo0
I knew that
X3eRo0
If
MᏫᎻᎯᎷᎷᎬᎠ
Yeah
X3eRo0
I converted the long double t
X3eRo0
To
X3eRo0
Decimal then it will loose some precision
X3eRo0
So I got the
MᏫᎻᎯᎷᎷᎬᎠ
Carry on
X3eRo0
Hex of the bytes from the &x where x is the long double
X3eRo0
Lemme show you
X3eRo0
Wait
MᏫᎻᎯᎷᎷᎬᎠ
You better hurry then
X3eRo0
X3eRo0
I want to convert this back to long double
Anonymous
Is possible use long float in the compiler turbo C
Anonymous
?
Anonymous
And not possible in the gcc
Anonymous
Or other compilers
MᏫᎻᎯᎷᎷᎬᎠ
Sorry I can't help you
X3eRo0
I am using gcc
Anonymous
Ok
Anonymous
I am using gcc
if you declare a variabl long float and then you compile your program using gcc you will get an Error
Anonymous
if you declare a variabl long float and then you compile your program using gcc you will get an Error
Yes
Anonymous
but you can use long double
Anonymous
Is part of standard IS0?
Anonymous
Sorry, my english is terrible
Anonymous
Is part of standard IS0?
what you mean the long double ? if it is an ISO Standard
Anonymous
Not
Anonymous
Refere me
Anonymous
The
Anonymous
long float
« Rev
@programminginc
1772
Fwd »