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...

WAP &#8211; represent a char in binary format

Answer Posted / vinayml

main()

{

char p = 'a' ;

int i = 0 ;



for( i = 0 ; i < 8 ; i++)

( p & (1 << i )) ?printf ("1"): printf("1");

}


Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1214


Can we declare a function inside a function in c?

1009


I need a sort of an approximate strcmp routine?

998


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2388


Write a program to swap two numbers without using the third variable?

1034


What are valid operations on pointers?

1167


How can I insert or delete a line (or record) in the middle of a file?

994


What are types of preprocessor in c?

1032


What are terms in math?

1003


How do I round numbers?

980


How many main () function we can have in a project?

1080


Is a pointer a kind of array?

1144


How can you increase the size of a statically allocated array?

1055


What is the difference between text and binary modes?

1150


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1095