Unfortunately, fflush (stdin) is not part of the standard. Some compilers support it, some don't. Fflush, per the standard, is for output....
It isn't a nul, and it isn't mysterious; it's stuff that was in the stream that you didn't take out, commonly a newline. cin.get () is only...
"char *array [256] declares an array of 256 char pointers. You have made no provisions for storage of actual characters, only the pointers. It...
Nonsense. He doesn't say he wants to swap the pointers, he says: #include <stdio.h> void pswap (int *pa, int *pb) { int temp = *pa;...
This is a system specific area. You don't mention your system. A Mac platform would not be the same as an Intel platform with *nix, which would...
File searching can be accomplished using the C standard run-time libraries (which are tailored to work on your specific system). Other things you...
It's almost certainly the case that your system is implemented in such a way that locals and automatic variables are allocated on the stack, and...
Seriously, fellow, replication of a thread doesn't increase attention, it dilutes it. Worse than that, it annoys people so that they decide not...
swap is set to the address of the integer before b (&b minus 1), in this case, a. Therefore, when you print what swap points to (a), you get the...
See the tutorials section and get a couple of good books.
I would suggest that the parameters shouldn't be ints, anyway. Someone might want to know the percentage of a fractional number. Someone also...
One has to love script kiddies that discover the obvious, or find it on the web. Well, maybe not.
I didn't read the code, but I'll offer some observations and leave it to you to research and advance your familiarity with the language. There...
Because when a negative number increases in magnitude (-1 becomes -2), it doesn't get larger, it gets smaller. Increasing its magnitude until it...
Your question is not entirely clear. A string could be the ordinary char array with a nul terminator, or it could be the string class. I presume...
No, it is rude of anyone to pop into a new environment and not observe or check out how things are expected to work. Do you fart in a church the...
See my reply here.
I won't read your code because of the lousy formatting engendered by your failure to read and apply the "Before you make a query" thread. I'm...
No, I don't see. Do you see? Did you even read the response? Do you see that it opens a console (without writing the rest of your code, of...
I realize your question says, "C compiler", but just for information purposes, a C++ compiler has different requirements. In a...
Separate names with a comma.