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 )
Type: Posts; User: ilans11il
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 )
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...
Hi,
I'm trying to create a Makefile for a single fie ( mycod.c)
Could you please help me with the syntax?
thanks
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 ...
...
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
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;
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>
Hi,
Can you please explane to me the atomic variable.
1 - What is use for ?
2 - When should I use it ?
thanks
I didn't understand the explenation regarding "sizeof(bit1)"
unsigned int is 4 bytes , but in bit1 we have 3 times unsigned int ..
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>
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
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...
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
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
thank youuuuuuuuuuuuuu :redface:
this not coused the error
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...
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
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
...
thanks
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]
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
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 ?
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...
Thanksssssssssss
for the explenation and the greate info - I'll use it :o