Search:

Type: Posts; User: ilans11il

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,006

    Bit-Wise expresions

    Hi,

    Could you please refresh my memory and explane those arguments ?

    1. y = x & ~(1<<n) ( x=2 ,n=3)

    2. y = ~x & (x+1)

    3. a<<=1 ( a is define as int )
  2. Compile C file from command line - to a different path.

    Hi,

    I'm working on windows and I'd like to know how to compile the C file to a different path.

    What I mean is :
    the basic compile command is :gcc Hello.c -o Hello_E

    I'd like to create the...
  3. Replies
    2
    Views
    851

    Makefile for a single file

    Hi,

    I'm trying to create a Makefile for a single fie ( mycod.c)
    Could you please help me with the syntax?

    thanks
  4. Replies
    3
    Views
    606

    terany operation

    hi,
    this function find the bigest number of 3 numbers.
    can you please explane to the statment:(a>b&&a>c?a:b>c?b:c);
    I know that the ? is like if but I'm getting lost with this statment ...


    ...
  5. Replies
    4
    Views
    1,922

    Hi Andreas Q -1 what about regarding the 1...

    Hi Andreas

    Q -1 what about regarding the 1 degit in red?
    With what do I multipole the red 1 ?
    1 0 0

    &

    0 1
  6. Replies
    4
    Views
    1,922

    Bitwise -- b&01

    Hi ,

    Could you please explane to me the statment " b&01"

    b=4=100 (in binary)
    why 100&01 it's 0? :confused: ( and not 100)



    int b=4;
  7. Replies
    3
    Views
    802

    Function purpose

    Hi ,
    Could you please help me understand what the "test" function do ?
    test(15,8) >> gives 16
    test(7,15) >> gives 17

    thanks



    #include <stdio.h>
  8. Replies
    2
    Views
    19,007

    atomic variable in C

    Hi,
    Can you please explane to me the atomic variable.
    1 - What is use for ?
    2 - When should I use it ?

    thanks
  9. Replies
    9
    Views
    2,057

    I didn't understand the explenation regarding ...

    I didn't understand the explenation regarding "sizeof(bit1)"
    unsigned int is 4 bytes , but in bit1 we have 3 times unsigned int ..
  10. Replies
    2
    Views
    785

    struct size using bitfileds

    Hi,

    could you please explane to me why the size of this struct is 4 bytes?
    I'll expect the size to be 2 bytes ( 5+5+6=16 bit)

    thanks



    #include <stdio.h>
  11. Replies
    9
    Views
    2,057

    bitfields question

    Hi ,

    Could you please explane to me why the output of this code is 12 (1100b)


    #include <stdio.h>
    #include <stdlib.h>
    void main()
    {
    struct bitfield
  12. Replies
    3
    Views
    874

    debugging a C code on Linux OS

    Hi,

    I have a code that I'd like to debugg it.

    Question
    1 - What is the correct command line to use the debugger ?
    2 - Do I need to install additional software for the debugger ?
    if yes...
  13. Replies
    5
    Views
    766

    I use eclipse on linux and the code is compiling...

    I use eclipse on linux and the code is compiling .
    the problem with the "bits_up" function is that its not returning ualue and it doesn't print thr text in the printf
  14. Replies
    5
    Views
    766

    calling a function - not working

    Hi,

    This code gets a binary number and change its bits.
    I have a problem with the "bits_up" function .
    Could you please explane to me why this function not working?

    thanks in advance
  15. thank youuuuuuuuuuuuuu :redface:

    thank youuuuuuuuuuuuuu :redface:
  16. this not coused the error

    this not coused the error
  17. Mutex_Create_Threads - Segmentation fault (core dumped)

    Hi ,
    Could you view my code - why do I get "Segmentation fault (core dumped)" when trying to run this program ?

    there is some warning regarding pthread_create but I don't understand what is the...
  18. Replies
    1
    Views
    808

    Devise 2 number with Bitwise

    Hi,

    I'd like to create a program that devide 2 8bit numbers .
    the numbers will be input by the user.

    Any ideas how to creat this program?

    thanks
  19. Calling to Function & Expression question

    Hi,
    I Have 2 question2 regarding this code:
    1 - int_to_bin(c); // Why &c not working here ?
    2 - str[i] = (num&1)?'1':'0'; // What this expression do ? ?'1':'0'

    thanks


    ...
  20. Replies
    2
    Views
    1,223

    thanks

    thanks
  21. Replies
    2
    Views
    1,223

    what is wrong with my casting

    Hi,
    Could you please advise


    The warning:
    :63:7: warning: passing argument 1 of ‘fputc’ makes integer from pointer without a cast [enabled by default]
  22. So , this is correct ? 1 - *ptr=my_array[0] >>...

    So ,
    this is correct ?
    1 - *ptr=my_array[0] >> *ptr get the value of my_array[0]
    2 - my_array[0]=*ptr >> *ptr allows the value of my_array[0] to be changed
  23. I think I got it, 1 - ptr gets the addres of...

    I think I got it,
    1 - ptr gets the addres of &my_array[0]
    2 - *ptr gets the value of my_array[0]

    Am I corect ?
  24. Arrays_as_Parameters_2_Pointer >> Question

    Hi,
    I have an additional question regarding this issue...

    According to the enclosed code,
    Is it correct to say that *ptr gets the memory address and values of
    my_array ?


    int multiply (int...
  25. Replies
    12
    Views
    1,687

    Thanksssssssssss for the explenation and the...

    Thanksssssssssss
    for the explenation and the greate info - I'll use it :o
Results 1 to 25 of 58
Page 1 of 3 1 2 3