structures can be passed by reference.
they can be returned as pointers.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
#include<stdio.h>
int main()
{
struct bit field{
int x:4;
char c:6;
};
return 0;
}
(or)
struct bit_field{
unisgned int x:3;
unsigned int y:6;
unsigned int z:8;
};
int main()
{
struct bit_field bit;
bit.x=3;
bit.y=15;
bit.z=12;
}
}
Create Date
:
Wednesday, November 07, 2007
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
All declarations inside a structure are by default public, while all members inside a class are private
Create Date
:
Thursday, April 03, 2008
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
false: arrays are more appropriate for the elements of the same type
Create Date
:
Tuesday, April 01, 2008
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
We can define structure bit field members with Dot operators.
EXAMPLE:
#include <stdio.h>
int main()
{ Struct bit_field
{ Int x.4; // it allocates only 4 bits to x
Char C.6; // it allocates only 6 bits to C;
};
return 0;
}
Create Date
:
Sunday, March 16, 2008
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
with the help of function modules ie., write_messages or format_messages we can store errors.
Create Date
:
Sunday, March 16, 2008
Click here
to improve the Interview Question, Answer and other fields.