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 difference between c and python?
hi send me sample aptitude papers of cts?
How many keywords (reserve words) are in c?
Difference between Function to pointer and pointer to function
What are the different file extensions involved when programming in C?
Explain how do you list a file’s date and time?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
How many bytes are occupied by near, far and huge pointers (dos)?
What is the difference between call by value and call by reference in c?
What does malloc () calloc () realloc () free () do?
How do you do dynamic memory allocation in C applications?
Where is volatile variable stored?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What are operators in c?
Explain what is a static function?