unless you want to rewrite the C Primer book is up to you. But no really i would just like an example on how would i be able to use the modulus OP on an array with values but im guessing its hard to...
Type: Posts; User: siLent0
unless you want to rewrite the C Primer book is up to you. But no really i would just like an example on how would i be able to use the modulus OP on an array with values but im guessing its hard to...
i did specify that i dont know how to use the modulus when it comes to arrays i get errors when i try to use my assignments.
examples would be
array[90] %= 100
*(array % 100)...
I'm trying to Down size a 5 digit number on an array of [26] values each value has well 5 digits
i want to just use the last two digits for the value how would i be able to do that with
the...
I've used the "%s" Format and every time i compile the program closes becuse of an error
what i have is:
void print ( *array)
{
I'm trying to Print each string on an array pointer
(one by one)
EXAMPLE:
JOHN
JAME
BILL
DOUG
SAM
So on.......
#include <stdio.h>
#include <string.h>
#include <ctype.h>
void getWords(char * wbuf);
void output();
FILE *fp;
int main (void)
well since its a pointer array the values are passed by address but the return should just go back to main() so it can call the PRINT Function and display all the content thier would someone please...
The red line should return a NULL if the condition failed
if not all of c is assign to buffer[i++]
but i dont get a compile error just a logic error
#include <stdio.h>
#include <ctype.h>
#include <string.h>
void getWord( char *buffer);
void output();
FILE *fp;
int main()
what is not happening is that it is not displaying the words that i want from the array that has the values of the FILE.DAT while passing it out to an output function.
void ouput...
i corrected the typo its ontop of your post
my mistake WBUF = BUFFER ARRAY it was A TYPO SORRRY
void ouput (buffer[])
{
puts(buffer)
}
on your Nested IF statments for grades
I would recomend a Switch
im trying to make a program that caputures the contents on a binary file (file.dat) and then asign all chracters to an array, then pass them through another function to output each charatcter
the...