func(int* a, int b)
{
while((*a&(1 << b))==0);
}
Why is this piece of code used??
Type: Posts; User: ronrardin
func(int* a, int b)
{
while((*a&(1 << b))==0);
}
Why is this piece of code used??
int address = 0;
int function_unit =0;
int destination =0;
int src1=0;
int src2=0;
The file is being read for few lines after which i get this exception
Hi
I am writing a C program which accesses file. I am using Visual studion 2008. I use fscanf_s to read the file. The file reading happens properly until one step where i get an error which says...
Ok. but could anyone help me with filling up INST[] with the contents read?
if( some condition is met)
{
then I have to add the file line contents read in this loop to INST[]
}
else
{...
Hi Thanks for your reply.
I am doing some modification to the contents read to the file and only after that I am pushing it to INST[](of type instruction). That is where I am stuck:(
Hi all, I have a small confusion on filling up struct array.
I have a struct called instruction
struct instruction
{
int address;
int source;
int destination;
Hi all,
I am writing a function to copy one struct(called instruction) to another
void copy_struct(instruction src,instruction dest)
{
dest.inst_addr = src.inst_addr;
dest.inst_func =...