WAP – 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

What is static identifier?

704


What was noalias and what ever happened to it?

592


What is bubble sort technique in c?

592


What is wrong with this initialization?

593


What are the benefits of organizational structure?

573






What are c identifiers?

629


Explain how can you restore a redirected standard stream?

591


What is the difference between abs() and fabs() functions?

605


What is indirection? How many levels of pointers can you have?

659


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

633


write a program to create a sparse matrix using dynamic memory allocation.

4373


Which control loop is recommended if you have to execute set of statements for fixed number of times?

809


Is that possible to store 32768 in an int data type variable?

691


What functions are used for dynamic memory allocation in c language?

600


What is a structure and why it is used?

621