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
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Differentiate between #include<...> and #include '...'
What is a pointer in c plus plus?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Why c is called a mid level programming language?
What is the difference between void main and main in c?
What is bss in c?
What is the use of volatile?
Why is c called a mid-level programming language?
What is the difference between array and pointer in c?
What is the meaning of 2d in c?
What is the acronym for ansi?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Tell me when would you use a pointer to a function?
What is signed and unsigned?