The struct notation
int i : 4;
specifies the size of integer i in bits, so the value of i will be represented
by 4 bits. In this case we have a signed int with a possible values of -8 to 7.
Whe...
yba
Jul 10th, 2007
The output should contain 100 as the first number.The union declares that st.i is a 4-bit field, and 100 can fit in 4 bits, however, you need to know how your compiler allocates bitfields. Are t...
Example to reverse a sentence entered by user without using strings."c /* Example to reverse a sentence entered by user without using strings. */
#include
void Reverse();
int...
ARKAJIT NANDY
Aug 2nd, 2015
"c #include
#include
#include
int main()
{
char st[50], rst[50];
printf("Enter the sentence...
");
gets(st);
int len=strlen(st), p;
int j=-1,k;
p=len;
for(int i=(...