Abhishek
The main reason is that loops take much longer to execute
How is it causing 10 times the delay with just 20 iterations?
Abhishek
Maybe your test is incorrect
It isn't. The actual output is being streamed to a webserver... The server dumps whenever it recieves data... The dumbing interval is also slow...
Abhishek
Visibly slow
Anonymous
Abhishek
execution time powers by itself
I didn't understand what you meant.
Anonymous
I didn't understand what you meant.
Execution means two things: 1. Running something 2. Killing someone because of doing something bad
Anonymous
No that's not what I was asking
Execution Time ** 2 Execution Time ^ 2
Abhishek
Execution Time ** 2 Execution Time ^ 2
Oh you mean to say the sleep's loop combined with my loop makes it O(n^2)?
Abhishek
But they are both on two different iteration ranges right
Anonymous
https://paste.ofcode.org/vMf44PT6TcbQapDejju6J4 I need help about a c recursive problem, the problem's leetcode link and the necessary algorithm explanation link were written in code as comment lines. Could you please help?
Anonymous
I'm getting correct results besides wrong results
● Igor
kinda off-topic, but I'm curious about how Java's new keyword works compared to C++'s in C++ we handle memory management, so new keyword just means to allocate at heap. we can instantiate objects allocating at the stack or the heap. but in Java, which has a garbage collector, new keyword seems to mean "give me an instance, wherever you want to allocate". the garbage collector decides where to allocate based on some criteria or always allocate at heap?
Anonymous
Thanks
줄리아 우지야노바
Cicero
Someone used svg through Wt library? I'm trying to parse the svg xml in WText objects but it's not going well..
Cicero
My point is to catch left and right click over each svg id
Lev
How I can write program for vechicle Autostar module in c Language
Lev
See in vikepedy
klimi
See in vikepedy
What's this vikepedy?
Lev
English vikepedy
klimi
English vikepedy
You mean English Wikipedia?
Lev
Yes
klimi
That's the biggest typo I have ever seen for Wikipedia :D
Lev
Autostar ,may be books in this tematics in Amazon?
Lev
Thory my english not good
Lev
Have a grate tour an a day
klimi
Cannot find anything to autostar, did you mean autosar?
Lev
Autosar may be
三体183号
hi
三体183号
How long do you need to work in a day?
Hussein
What's this vehicle autostar module?
AUTOSAR seems to be a specification like opengl but for smart cars
Hussein
AUTOSAR seems to be a specification like opengl but for smart cars
so software made by different manufacturers would be compatible
Hussein
AUTOSAR seems to be a specification like opengl but for smart cars
this is what I got from the wikipedia page it seem to be so sort of firmware and os interface standards for software flushed on the computers in vehicles (as they call it ECU)
Hussein
www.engineersgarage .com/autosar-automotive-open-systems-architecture/ the article above seem to explain it well
the best for everyone
#include <stdio.h> int factorial(int n); void main (void) { int number; int z ; printf("enter a number of factorial to get it "); scanf("%d",&number); z=factorial(number); printf("factorial %d = $d \n",&number,z); } int factorial(int n) { if(n==0) return 1; else return(n*factorial(n-1)); }
the best for everyone
what is the problem in this code it works but it doesn't give a right answer
\Device\NUL
delete & on the printf
Hussein
the best for everyone
as much as it should be
the best for everyone
its not giving me the result of factorial
Hussein
I did it but it also didn't work yet
#include <stdio.h> unsigned int factorial( unsigned int n); int main () { int number = 5; int z =factorial( number ); printf("factorial of %d = %d \n",number,z); } unsigned int factorial( unsigned int n) { if(n==0) return 1; return n * factorial(n-1) ; }
pavel
When people start using debugger...
Hussein
I wanted to enter the number from the screen
you can do that with scanf( “” , &number ) and declare it as int number;
Hussein
did you only add unsigned ?
and removed the else statement it wasn’t necessary
Hussein
I wanted to enter the number from the screen
I used a online compiler so I couldn’t use it
Hussein
I wanted to enter the number from the screen
for printing you shoild do this 👇 printf("factorial of %d = %u \n", number , z );
Alex
hi guys, how can i calculate the time passed from one time t0 to another t1? i have to resend a message if the client doesn't answer in 0.5ms
Alex
i'm using time but it only has seconds
pavel
Use chrono
Sid
Can anyone help me with a c program question?
the best for everyone
Sid
Ok
D
What's the best resource/ roadmap for learning data structures?
D
For data structures which is more preferable C or C++?
the best for everyone
// finds the sum of the numbers up to the entered n value. recursively #include <stdio.h> int sum (int n) ; int main () { int number; printf("enter a number"); scanf("%d",&number); sum(number); } int sum (int n) { if (n==0) return 1; else return n+sum(n-1); }
the best for everyone
can anyone tells me what is the error in this code
\Device\NUL
can anyone tells me what is the error in this code
Nothing, it just returning without printf anythiing
Anonymous
Leovan
Hi everyone, recently I first met #pragma push_macro and #pragma pop_macro I can't find detailed information about them. I understand that they can save some definition of macro into its stack and then restore it. But how it affects on compatibility Microsoft with GNU compilers and where I should use it?
Buffer
#include<stdio.h> int main() { int a = 1; if(a--) printf("True") ; if(a++) printf("False") ; } What will be the output of this code?
Alex
hi guys, i am using non blocking i/o on a socket udp, but next i want to use again the blocking i/o, so how can i make it? which options should i use on setsockopt?