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

What are inbuilt functions in c?

1084


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1093


What is wrong in this statement? scanf(“%d”,whatnumber);

1290


how many errors in c explain deply

2138


How do you print an address?

1327


What does int main () mean?

1078


What are structures and unions? State differencves between them.

1256


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1153


What are the valid places to have keyword “break”?

1149


What is multidimensional arrays

1177


Explain output of printf("Hello World"-'A'+'B'); ?

1561


Can math operations be performed on a void pointer?

1107


Why does not c have an exponentiation operator?

1121


What is sizeof array?

1110


What are the 4 data types?

1061