Then it's something else wrong with your code. It works here.
test$ cat dftest.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int main(void)
Type: Posts; User: hauzer
Then it's something else wrong with your code. It works here.
test$ cat dftest.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int main(void)
c = '\t'
At line 13.
What do you mean it doesn't work? Is that missing bracket that should be enclosing if a typo? Otherwise, it should work.
On this board, posts are lengthy for a reason. grumpy gave you all the information you need, have you read it?
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int main(void)
{
long double x = 34*pow(10,9);
printf("%.0Lf\n", x);
Welcome.
Give Arch a chance, you most certainly won't regret it.
*Sigh* I'm not trying to shoot down anyone, I have no pleasure in hindering a motivated learner. I'm just trying to tell him that most of the questions he asks are already chewed out innumerable...
Well, I apologize. I understand that you are a beginner, but that, however, doesn't give you the right to harras the forumfellows with objectively unanswerable or commonly answered questions. Do some...
There is no need to double post, if someone can, and wants to answer you, he will.
Homework Policy
I am seriously considering you a troll.
What do you expect? That we tell you the average of the sum of time it took every person that learned C to learn it, specifically, to make "good" applications? Nobody can give the answer to that...
Mine returns:
Look like yours is more than aged.
The C Standard Library
Also, the man page:
Because it compares strings?
The program will always call that last printf(), no matter what's the output of posQuadraticEquation. You shoudn't do any input/output in a function like that, instead you should test it's return...
Well, what's the problem? Determining if a number is prime or removing the digits?
I tend to miss little things like that too often myself.
Notice that D = b^2 - 4ac, not D = sqrt(b^2 - 4ac); that is common math, I think. To indicate that there are no real values you could return a NAN. To test the return value use isnan. More...
First of all, a is not big enough to hold that string, you need a buffer that can hold the trailing '\0'. Second, you can use scanf("s", &a), there is no need to get one character at a time. Third,...
Well, if D < 0 then you won't have any real values.
D = b^2 - 4ac
Of course you can. The for loop is just shorthand for:
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char **argv)
{
{
int i = 20; // Initialize
I've read somewhere that typename actually has some advantages and even if it didn't I would still use it because it's just so much clearer.
I recommend AutoHotkey.