Answer Posted / naresh m
main()
{
int a[12],n,m,i=0;
printf("enter the no to find binary no's");
scanf("%d",&n);
while(n!=0)
{
m=i++;
a[i]=n%2;
n=n/2;
}
printf("binary value is");
for(i=m;i>=0;i--)
{
printf("%d",a[i]);
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Explain zero based addressing.
What is the use of extern in c?
What is the difference between void main and main in c?
How can I delete a file?
please explain every phase in the "SDLC" in the dotnet.
How can I find the modification date of a file?
Explain output of printf("Hello World"-'A'+'B'); ?
What is page thrashing?
What is the difference between #include
What are the applications of c language?
What are global variables and explain how do you declare them?
c program to compute AREA under integral
What is FIFO?