Reverse the bit order in a single macro.
eg. i/p = 10010101 --> o/p = 10101001
Answer Posted / balaji ganesh
#include<stdio.h>
#define f(a) strrev(a)
main()
{
char c[20];
scanf("%s",c,printf("enter bit string;"));
printf("%s",f(c));
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of volatile?
What is the difference between memcpy and memmove?
write a c program in such a way that if we enter the today date the output should be next day's date.
Whats s or c mean?
What are the types of pointers in c?
What is the use of printf() and scanf() functions?
What functions are used in dynamic memory allocation in c?
What is scope of variable in c?
What is structure padding in c?
What does *p++ do? What does it point to?
Write a program to print “hello world” without using semicolon?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is use of #include in c?
write a program in c language to print your bio-data on the screen by using functions.
When should the const modifier be used?