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
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Give basis knowledge of web designing ...
Explain how many levels deep can include files be nested?
What are the general description for loop statement and available loop types in c?
What is || operator and how does it function in a program?
Explain what are compound statements?
Write a program to print factorial of given number using recursion?
How the c program is executed?
What are enumerated types?
How are variables declared in c?
What are the types of data types and explain?
Can a pointer be volatile in c?
number of times a digit is present in a number
What is the purpose of macro in C language?
What is pointers in c?