what is the use of ~ in c lang?????
Answers were Sorted based on User's Feedback
Agree with answer 2.
~ is used to find the 1's complement of any number
ex:
a = 0xCA (in hex) => 11001010 (in binary)
~a = 0x35 (in hex) => 00110101 (in binary)
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / bikash
~ is used to complement a hex value.
eg a = ~0x01;
//now a will have 0xFE;
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / guest
we r using this key word for equal and shine operator
| Is This Answer Correct ? | 1 Yes | 0 No |
Write a program of advanced Fibonacci series.
Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.
print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20
Is int a keyword in c?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
Write a c program to print the even numbers followed by odd numbers in an array without using additional array
Print all numbers which has a certain digit in a certain position eg: number=45687 1 number=4 2 number=5 etc
What is the size of empty structure in c?
Explain zero based addressing.
A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A
What is the scope of global variable in c?
What is a node in c?