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 |
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
how do you execute a c program in unix.
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
what would be the output of the following program? main() { int k = 123; char *ptr; ptr = &k; printf("%d",*ptr); }
what do structure language means?
a=5 a=a++/++a
What are Macros? What are its advantages and disadvantages?
what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }
What is hashing in c?
Can you tell me how to check whether a linked list is circular?
void main() {int i=2; printf("%d%d%d",i,++i,i++); getch(); }