i assume its just the same exept i swap the two lines
count = count ^ *argv[3];
bytes++;
to give:
bytes++;
count = count ^ *argv[3];
Type: Posts; User: kris_perry2k
i assume its just the same exept i swap the two lines
count = count ^ *argv[3];
bytes++;
to give:
bytes++;
count = count ^ *argv[3];
ok i have followed the basic tutorial on how to encrypt a file using xor, as follows:
#include <stdio.h>
int main(int argc, char *argv[])
{
int count,bytes;
FILE *in,*out;
ok thanks, that sounds about right
ok what if it was a windows based sytem using a mirosoft c compiler
yeah thats what i thought, it would depend on the size of the int. But this is what ive been asked
"in C, how many bytes of memory are occupied by an array of 100ints and an array of 100...
how many bytes are occupied by a an array of 100ints, is it 100*8=800, that seems wrong
Hi all, what does it mean if ive been asked to draw a diagram of a typical memory map for a C application?
But how will i b able to fill the global array with the values up to 256 if it is outside any funtion, i wont b able to use a while loop
ok i get it now, thanks a lot
yes but does this not mean i will hve to use two separate pointers?
No this just prints out every value from the matrix. I need the pointer to print out the elements A[1][3] and B[1][0]. Is this possible?
I need to write a program which uses a pointer to access the elemnts of an array A and an array B (which is the transpose of A) this is what i have so far, but how would i set up the pointer to print...
ok thank you, i think i get it now
Ok, i dont think you understand what i mean, this is waht i have been asked to do:
Write a c program that declares a glbal array of 256 unsgned characters. In the main program initialise the...
i mean copy it, but i need the long integer array to be defined in a separate function, how do i pass each value from the main program?
ok, now i need to pass these values from this global array into a local array of 256 long integers. How do i do this?
Thanks, works perfect now, wasnt familiar with the unsigned int variable.
Hi, i am trying to define a 256 unsigned character array, with [0]=0, [1]=1 etc rigth up to [256]=256.
This is what i am using as the function
int n=0;
char ga[256];
while (n!=256)...
Hi all
How would i go about creating a function to add 2 16bit and 2 32bit integers together and return a long integer result. i dont even know where to start. Please help