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
Explain how do you determine whether to use a stream function or a low-level function?
Why can’t we compare structures?
What is typedef?
Where are c variables stored in memory?
What is a pointer on a pointer in c programming language?
What are pointers?
Explain what is a static function?
What is logical error?
Is there any demerits of using pointer?
Was 2000 a leap year?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is #include stdlib h?
What is a pragma?
What are the features of c languages?
What is call by reference in functions?