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

Answers were Sorted based on User's Feedback



WAP &#8211; represent a char in binary format ..

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

WAP &#8211; represent a char in binary format ..

Answer / johnson

?eh? this doesn't make sense. The answer will obviously be
11111111.

Is This Answer Correct ?    0 Yes 0 No

WAP &#8211; represent a char in binary format ..

Answer / kalpana.y



738211

Is This Answer Correct ?    0 Yes 0 No

WAP &#8211; represent a char in binary format ..

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

More C Interview Questions

How do I get an accurate error status return from system on ms-dos?

0 Answers  


write a function for strtok()??

2 Answers   Verifone,


The differences between Windows XP and Windows Visa

8 Answers   HCL,


Are there any problems with performing mathematical operations on different variable types?

0 Answers  


What is the use of a static variable in c?

0 Answers  


Why we use conio h in c?

0 Answers  


Explain how can you determine the size of an allocated portion of memory?

0 Answers  


Explain what is the difference between a free-standing and a hosted environment?

0 Answers  


Find the middle node in the linked list?? (Note:Do not use for loop, count and count/2)

6 Answers   Subex,


Write a function that will take in a phone number and output all possible alphabetical combinations

0 Answers   Motorola,


du u know test pattern for robosoft? Plz share

1 Answers   RoboSoft, TATA, Wipro,


Can we access the array using a pointer in c language?

0 Answers  


Categories