I am trying to make a program which will return the number of words in a given sentence. It should be able to give correct information even if there are multiple spaces before the sentence, between...
Type: Posts; User: tfigueiro
I am trying to make a program which will return the number of words in a given sentence. It should be able to give correct information even if there are multiple spaces before the sentence, between...
Thank you laserlight!
What is the right way to declare a pointer and assign it an existing variable in the same line?
would this:
int *p = &e;
be the same as:
Yaiks!
Working program:
#include <stdio.h>
#include <math.h>
long int factor(int num1){
int x;
long int fact;
Thank you for your help.
So what is the power operator? And what do you mean by "integer" math, since I have defined frac to be a float?
Please understand I have just started programming and...
I am trying to write a program which will solve the following expression:
(1/2)-(1/2^2!)+(1/2^3!)-(1/2^4!)+(1/2^5!).......+-(1/2^(n-1)!)+-(1/2^n!)
I have been trying to debug it for a couple of...
Thank you very much for looking into my question! I thought scanf meant something like "update value of". Now my program does work properly and more important, I won't forget what exactly scanf does!...
Hello, I am very new to C, I was making an experiment after reading the C tutorial on the site up until the "Loops" section. I've made a program which I can compile but which doesn't return any...