Search:

Type: Posts; User: gawiellus

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    140

    I have changed the code but I still got message...

    I have changed the code but I still got message
    Test Crashed
    Caught unexpected signal: SIGSEGV (11). Invalid memory access.


    #include <stddef.h>
    #include <stdlib.h>
    int compare(const void *a,...
  2. Replies
    2
    Views
    140

    sorted two array and result array

    Hi
    I write function that take 5 parameters: pointer to array a, pointer to array b, size of array a, size of array b and pointer to size of result array
    My task is to sort first array remove...
  3. Replies
    7
    Views
    268

    Sorry I probably said wrong my task is not print...

    Sorry I probably said wrong my task is not print but return as a string. If memory is limited than probably n must be lower than 65536. As I said this is task from codewars site then n must be...
  4. Replies
    7
    Views
    268

    This is task from codewars site so probably n is...

    This is task from codewars site so probably n is correct value.
    So the way is to calculate perfect bytes of allocated memory? For example


    if(n<9)
    size=n*(n+1)/2;
    if(n>9&&n<=99)...
  5. Replies
    7
    Views
    268

    maximum n size is 2^16 which give us 65 536 so n...

    maximum n size is 2^16 which give us 65 536 so n should be at least 5 characters long


    I thought that I don't have to calculate perfect value of characters for each n thats why I allocated bigger...
  6. Replies
    7
    Views
    268

    Returning pattern

    Hi
    I am writing programm to print pattern like below
    1
    22
    333
    4444
    55555
    666666
    up to n given as a parametr.
    my code below
  7. Replies
    5
    Views
    411

    long int solve the problem thank you

    long int solve the problem thank you
  8. Replies
    5
    Views
    411

    Is double number even or no

    Hi
    I have to write programm to check if double number is even or no
    Number can be negative positive, double or int.
    Double number is uneven 0 is even.


    bool is_even(double n)
    {
    int...
  9. Replies
    7
    Views
    339

    Probably actual string should be "ac" because my...

    Probably actual string should be "ac" because my solution give me string with backspaces and codewars compiler give me not proper solution
  10. Replies
    7
    Views
    339

    Remove # and remove previous char for expample...

    Remove # and remove previous char for expample "abc#d##c" should give me "ac"
  11. Replies
    7
    Views
    339

    Replace # into backspace

    Hi im writing program from codewars site.
    The aim of this program is to replace # into \b. After compiling in Visual Studio I am getting proper result but codewars site give me wrong result.

    ...
  12. How to detect keylogger or remote desktop programm

    Hi
    I have a question how to detect a keylogger or remote desktop spy program. I ask because i suppose that I have one on my computer. Standard antivirus application detect nothing. Just spy shelter...
  13. Replies
    4
    Views
    446

    Convert int to string in binary base

    Hi
    Is there a library function in C which convert int decimal to binary string. I know about itoa function but it is not part of standard.
  14. Replies
    24
    Views
    1,592

    Thank you for yours answers. I know the...

    Thank you for yours answers. I know the solutions. In this case I have to use unions and bit fields. I gave me the proper solution.
  15. Replies
    24
    Views
    1,592

    ask A double precision floating-point type...

    ask

    A double precision floating-point type (double) has the following format:
    > Sign (1 bit)
    | > Exponent (11 bits)
    | | > Mantissa (52 bits)
    | | |
    s eeeeeeeeeee...
  16. Replies
    24
    Views
    1,592

    This is task from codewars site. Anti cheat test...

    This is task from codewars site. Anti cheat test doesn't let me use instructions
    frexp(d,&result)
    because of character &
    I have no idea how to solve that
    By the way thank you very much for your...
  17. Replies
    24
    Views
    1,592

    I am not allowed to use any operators...

    I am not allowed to use any operators +-*/%&|^~<>#? I am not allowed to use any pointers address operations and I can't include any extra files. Sorry for that.
  18. Replies
    24
    Views
    1,592

    Thank you very much I didn't know about this....

    Thank you very much I didn't know about this. It's very inventive. I read the task again and I am not allowed to use any pointers and adres operations is well. But thank you very much i have to...
  19. Replies
    24
    Views
    1,592

    You are GREAT and BRILLIANT and PHENOMENAL. It...

    You are GREAT and BRILLIANT and PHENOMENAL. It seems to be fine. Can you explain me this line with return. I have to understand this code. But i also can't do any pointers addres operations
  20. Replies
    24
    Views
    1,592

    Definitley I don't need modf. For me it's look...

    Definitley I don't need modf. For me it's look like adding two numbers without any arithmetic or bitwise operators. I think if I am not allowed to use this operators I have to use functions. The...
  21. Replies
    24
    Views
    1,592

    Extract exponent from a double value

    Hi i have a question. How to extract exponent from a doble value as a unsigned int. I try with function frexp it gave me exopnent from range
    -1022 - +1023. My task is to offset this exponent about...
Results 1 to 21 of 21