WAP – represent a char in binary format
Answers were Sorted based on User's Feedback
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 |
Answer / johnson
?eh? this doesn't make sense. The answer will obviously be
11111111.
Is This Answer Correct ? | 0 Yes | 0 No |
please send me the code for multiplying sparse matrix using c
What is pointer & why it is used?
2. Write a function called hms_to_secs() that takes three int values—for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.
how many error occurs in C language ?
C program to find frequency of each character in a text file?
What is the difference between static and global variables?
What is the difference between call by value and call by reference in c?
what is a function pointer and how all to declare ,define and implement it ???
how to capitalise first letter of each word in a given string?
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance
Can a pointer be volatile in c?
write an algorithm and a program to count the number of elements in a circularly singly linked list