Search:

Type: Posts; User: kris_perry2k

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    983

    i assume its just the same exept i swap the two...

    i assume its just the same exept i swap the two lines


    count = count ^ *argv[3];
    bytes++;

    to give:

    bytes++;
    count = count ^ *argv[3];
  2. Replies
    3
    Views
    983

    xor enryption and deryption

    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;
  3. Replies
    3
    Views
    3,376

    ok thanks, that sounds about right

    ok thanks, that sounds about right
  4. Thread: Bytes

    by kris_perry2k
    Replies
    10
    Views
    2,343

    ok what if it was a windows based sytem using a...

    ok what if it was a windows based sytem using a mirosoft c compiler
  5. Thread: Bytes

    by kris_perry2k
    Replies
    10
    Views
    2,343

    yeah thats what i thought, it would depend on the...

    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...
  6. Thread: Bytes

    by kris_perry2k
    Replies
    10
    Views
    2,343

    Bytes

    how many bytes are occupied by a an array of 100ints, is it 100*8=800, that seems wrong
  7. Replies
    3
    Views
    3,376

    Memory Map

    Hi all, what does it mean if ive been asked to draw a diagram of a typical memory map for a C application?
  8. Replies
    13
    Views
    1,354

    But how will i b able to fill the global array...

    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
  9. Replies
    5
    Views
    1,835

    ok i get it now, thanks a lot

    ok i get it now, thanks a lot
  10. Replies
    5
    Views
    1,835

    yes but does this not mean i will hve to use two...

    yes but does this not mean i will hve to use two separate pointers?
  11. Replies
    5
    Views
    1,835

    No this just prints out every value from the...

    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?
  12. Replies
    5
    Views
    1,835

    Matrix Arrays

    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...
  13. Replies
    13
    Views
    1,354

    ok thank you, i think i get it now

    ok thank you, i think i get it now
  14. Replies
    13
    Views
    1,354

    Ok, i dont think you understand what i mean, this...

    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...
  15. Replies
    13
    Views
    1,354

    i mean copy it, but i need the long integer array...

    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?
  16. Replies
    13
    Views
    1,354

    ok, now i need to pass these values from this...

    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?
  17. Replies
    13
    Views
    1,354

    Thanks, works perfect now, wasnt familiar with...

    Thanks, works perfect now, wasnt familiar with the unsigned int variable.
  18. Replies
    13
    Views
    1,354

    256 array problem

    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)...
  19. Replies
    2
    Views
    2,989

    adding 16bit and 32 bit integers

    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
Results 1 to 19 of 19