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 |
What is #line?
What is array of pointers to string?
What is the real difference between arrays and pointers?
27 Answers Hexaware, Logic Pro, TCS,
Explain the meaning of keyword 'extern' in a function declaration.
Are comments included during the compilation stage and placed in the EXE file as well?
What is type qualifiers?
What is the benefit of using an enum rather than a #define constant?
how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.
In C language what is a 'dangling pointer'?
Tell me a C program to display the following Output? 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5
What is typedef example?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics