Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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.

2850


Differentiate between #include<...> and #include '...'

1043


What is a pointer in c plus plus?

1288


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3927


Why c is called a mid level programming language?

1056


What is the difference between void main and main in c?

1142


What is bss in c?

1083


What is the use of volatile?

1071


Why is c called a mid-level programming language?

1191


What is the difference between array and pointer in c?

1138


What is the meaning of 2d in c?

1106


What is the acronym for ansi?

1035


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1958


Tell me when would you use a pointer to a function?

1044


What is signed and unsigned?

1050