Yes, I looked in the manual pages for those functions, and I always do a research before posting a thread.
http://www.space.unibe.ch/comp_doc/c_manual/C/MAN/fflush.htm
the question I should be...
Type: Posts; User: redche
Yes, I looked in the manual pages for those functions, and I always do a research before posting a thread.
http://www.space.unibe.ch/comp_doc/c_manual/C/MAN/fflush.htm
the question I should be...
#include <stdio.h>
void myflush ( FILE *in )
{
int ch;
do
ch = fgetc ( in );
while ( ch != EOF && ch != '\n' );
Why we do not see the Marines in Africa where everyday is battle to survive, many people die for no reason and there are over 9.5 million refugees?
And why USA have suddenly become concerned about...
This is the part that I didn't know about it.
#include<stdio.h>
typedef enum {true,false} boolean;
boolean test(void)
{
return false;
}
int main(void)
z is not a constant , notice that each iteration of the loop z is change
z*=x;
for x = 4 the result would be
b=1 : z=1*4=4
b=2 : z=z*4=4*4^2
etc
I don't know why we are talking about Israel ??
because Israel declined to sign Nuclear Non Proliferation Treaty.
Yes, that's right especially after the new Iraqi OIL law.
Mission Accomplished: Iraqi Oil Effectively Stolen.
PS: Don't get me wrong, it bothers me what happened to civilians, not only in...
Doing better then Saddam is not something be proud of and nor is it a good defense: "We are doing better then the worst people in the world."
So 655000 means nothing to you, but 32 students who...
so what happened to :
to disarm Iraq of weapons of mass destruction.
to end Saddam Hussein's support for terrorism.
and to free the Iraqi people.
but usa gives Iraq to shia so we start read...
@MacGyver
I am confused ..can you tell me once again why Americans troops are in iraq??
I got it. I've been learning C language since a month, so its not too bad for a beginner :p.
what i have to do to avoid this problem?because I m here to learn from my mistakes.
what do you mean???
rand will generate a random number between 0 and 'RAND_MAX' (at least 32767).
Prototype: int rand(void);
you have to include the stdlib.h Library at the beginning of the file. Rand will always...
here is another solution
#include<stdio.h>
#define MAX 20
int main(void)
{
int tab[MAX],nb_item,i,j,tmp;