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 / ravikumar
14
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
What does volatile do?
How will you find a duplicate number in a array without negating the nos ?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
What is the difference between class and object in c?
Why is it that not all header files are declared in every C program?
Why n++ execute faster than n+1 ?
What is wild pointer in c?
Is main a keyword in c?
What do you mean by a sequential access file?
What is sizeof in c?
Explain what is operator promotion?
What does 3 periods mean in texting?
Explain 'far' and 'near' pointers in c.
What are the features of the c language?