#include<stdio.h>
#include<stdlib.h>
void printb(int m, int n,int count)
{
int s = m & n;
printf("%d ", s);
m >>= 1;
count++;
if (count < 32)
{
printb(m, n,count);
}
}
void main()
{
int m = 152;
int n = 1;
int count = 0;
printf("打印%d在内存中的格式\n", m);
printb(m, n,count);
printf("\n");
system("pause");
#include<stdlib.h>
void printb(int m, int n,int count)
{
int s = m & n;
printf("%d ", s);
m >>= 1;
count++;
if (count < 32)
{
printb(m, n,count);
}
}
void main()
{
int m = 152;
int n = 1;
int count = 0;
printf("打印%d在内存中的格式\n", m);
printb(m, n,count);
printf("\n");
system("pause");
}