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

How can I make sure that my program is the only one accessing a file?

1283


What is unary operator?

1110


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2105


What are the different data types in C?

1208


what is bit rate & baud rate? plz give wave forms

1983


What is data types?

1096


Why shouldn’t I start variable names with underscores?

1069


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

3982


What is wrong with this initialization?

1014


How can a string be converted to a number?

1023


Can the curly brackets { } be used to enclose a single line of code?

1176


What is the purpose of main() function?

1256


What are data structures in c and how to use them?

1175


Why do we use pointer to pointer in c?

1091


What is register variable in c language?

1035