write a c program to change only the 3rd bit of the
particular number such that other bits are not affected..
if bitnum=10(say.. it can be any no..
Answer Posted / vasanth
hi Ajay... that is a great work.. well done.. but ur program
works only to change 0 to 1 of any bit but not 1 to 0..
anyhow good job...
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
how do you execute a c program in unix.
Write a code to remove duplicates in a string.
What is a 'null pointer assignment' error?
What is context in c?
Which programming language is best for getting job 2020?
what does static variable mean?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
How are 16- and 32-bit numbers stored?
When should you use a type cast?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What does the format %10.2 mean when included in a printf statement?
What are the general description for loop statement and available loop types in c?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
Write a factorial program using C.
Tell me what is null pointer in c?