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 / civa

#include <stdio.h>
main()

{

char p = 'a' ;

int i = 0 ;



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

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

}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1355


Differentiate between ordinary variable and pointer in c.

1101


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1741


How can you tell whether two strings are the same?

1204


What is the use of bit field?

1116


What is context in c?

884


If the size of int data type is two bytes, what is the range of signed int data type?

975


Why c is called a mid level programming language?

1023


What is wrong with this declaration?

1046


What is a static function in c?

1105


Where register variables are stored in c?

909


Do you know what are bitwise shift operators in c programming?

1059


Explain the red-black trees?

1051


differentiate built-in functions and user – defined functions.

1039


Distinguish between actual and formal arguments.

1013