Nomid Íkorni-Sciurus
Nomid Íkorni-Sciurus
(actually there should be something similar for gdb) but I think that would be a bit approximate
Nomid Íkorni-Sciurus
because of the debug heap
I_Interface
Just as we can find the time so can we find the memory occupied?
u even can to watch how many time takes every step
Nomid Íkorni-Sciurus
Anonymous
How to print time and date on c program plz hlp..
Anonymous
https://www.geeksforgeeks.org/how-to-measure-time-taken-by-a-program-in-c/
Anonymous
Above is for finding the time.
Anonymous
Ohk thanks
I_Interface
/report wtf link
Dima
s
Nomid Íkorni-Sciurus
I have another question
Nomid Íkorni-Sciurus
incompatible pointer types passing 'const byte [16]' to parameter of type 'const byte ' (aka 'const unsigned char ') though, the procedure is defined like this: void initByteVector16(const byte *vect[16]) and the parameter being passed is defined like this: const byte reg[16]; Where byte is: typedef unsigned char byte; Any suggestions ?
Nomid Íkorni-Sciurus
AH
Nomid Íkorni-Sciurus
I'm stupid
Nomid Íkorni-Sciurus
lol, I didn't notice the * near vect
Manoj
Code for this question
Dima
Code for this question
/warn Warn for this question
Dima
Read the rules.
Anonymous
Manoj
A function "count_heads()" that takes two inputs N and R. The function should return the probability of getting exactly R heads on N successive tosses of a fair coin. A fair coin has equal probability of landing a head or a tail(I.e 0.5) on each toss?code for this program plz
Anonymous
/warn Read the rules please
He have read the rule but the wrong one😂
Mohd
And what do you mean by "valid real constant"?
I mean is it a real constant or not as i have have options in multiple type questions this is one of an option... so is this a real constant?
Mohd
A constant which can posses a number ,decimal point and Exponent
Mohd
DEFINE "real constant"
A constant which can posses a number ,decimal point and Exponent
Mohd
Is 9.36-12 a valid real constant??? in C language
I am confused cause it have a minus or dash sign in between
Anonymous
Really? "real" means "can posses a number ,decimal point and Exponent"?
Mohd
Really? "real" means "can posses a number ,decimal point and Exponent"?
Yupzz I learn it and real/float can have decimal i am a beginner if i am wrong plzz give me the right info.
Anonymous
Oh wait
Anonymous
I got it
Anonymous
Real is not a term for C/C++, don't use it
Anonymous
use float or double
Anonymous
The expression you gave can be compile-time evaluated but i'm not sure that it is guaranteed
Anonymous
in C++ you can use it as a compile-time constant (constexpr variables) in C you can use it as a const variable
Anonymous
What is that 'compile-time'
Did google ban you? https://en.wikipedia.org/wiki/Compile_time
Anonymous
What is that 'compile-time'
What don't you undertand in words "compile" and "time"?
Talula
What is that 'compile-time'
Time at which the exe was compiled.
Anonymous
You can compile not only executables
Anonymous
Actually, to get an executable, it is must be compiled and linked
Mohd
What don't you undertand in words "compile" and "time"?
I understand!! it is the time which compiler uses to check the errors
Anonymous
It is the time when the compiler translates your C code to a machine code so computer can run it
Ato
anyone with idea on ussd development?
din va lu
What is pointer?
Anonymous
Nomid Íkorni-Sciurus
Is it possible to typedef pointer to functions ?
Nomid Íkorni-Sciurus
Yes
I'm trying to but it doesn't seem to like it.
Anonymous
But if possible use not typedefs, but type aliases
Nomid Íkorni-Sciurus
typedef void (*)(const MyStruct*) ihandler;
Nomid Íkorni-Sciurus
Anonymous
typedef void (*)(const MyStruct*) ihandler;
typedef void (*ihandler)(const MyStruct*);
Anonymous
I'm using C.
I'm sorry for you
Ato
anyone with idea on ussd development?
is there a way to configure my system to store the data entered by the user when there is connection timeout and resend automatically when connections is created again?
Nomid Íkorni-Sciurus
typedef void (*ihandler)(const MyStruct*);
Oh. Like a regular declaration then.
Nomid Íkorni-Sciurus
Kinda
I mean. A regular pointer to function.
Nomid Íkorni-Sciurus
I'm sorry for you
Almost. I don't need that level of fuzziness for my application
Anonymous
Nomid Íkorni-Sciurus
If you think so, than you don't know C++
Oh c'mon. Why do I need all that stuff to write an application that reads some bytes from a file.
Anonymous
It's my opinion
Nomid Íkorni-Sciurus
I just think to use STL than raw ugly C
It's exactly because I don't want to use STL that I use plain C.
Nomid Íkorni-Sciurus
I don't need all that stuff. I just need a few mallocs for this project.
Anonymous
But I'm just biased about C