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

What is the best style for code layout in c?

1142


What is meant by inheritance?

1151


the question is that what you have been doing all these periods (one year gap)

2136


What are header files and explain what are its uses in c programming?

1172


Differentiate between calloc and malloc.

1317


What is a keyword?

1217


What is meant by realloc()?

1200


What's the best way of making my program efficient?

1150


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

1164


Why we use break in c?

1070


Explain what is the concatenation operator?

1230


what is the role you expect in software industry?

2197


Did c have any year 2000 problems?

1153


Explain About fork()?

1170


What is variables in c?

1091