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

i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1952


Give basis knowledge of web designing ...

2008


Explain how many levels deep can include files be nested?

1060


What are the general description for loop statement and available loop types in c?

1107


What is || operator and how does it function in a program?

1070


Explain what are compound statements?

1039


Write a program to print factorial of given number using recursion?

993


How the c program is executed?

1139


What are enumerated types?

1166


How are variables declared in c?

1076


What are the types of data types and explain?

1077


Can a pointer be volatile in c?

970


number of times a digit is present in a number

2022


What is the purpose of macro in C language?

1101


What is pointers in c?

1095