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 are inbuilt functions in c?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is wrong in this statement? scanf(“%d”,whatnumber);
how many errors in c explain deply
How do you print an address?
What does int main () mean?
What are structures and unions? State differencves between them.
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What are the valid places to have keyword “break”?
What is multidimensional arrays
Explain output of printf("Hello World"-'A'+'B'); ?
Can math operations be performed on a void pointer?
Why does not c have an exponentiation operator?
What is sizeof array?
What are the 4 data types?