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 |
what is the diference between pointer to the function and function to the pointer?
Are there constructors in c?
Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 3 4
What is the advantage of a random access file?
Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print ("in if") // insert sumting } else { ///// insert sumthing print ("in else"); //// insert sumthing } can anyone modify it so that program prints. if and else both
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What is a floating point in c?
please help me.. how to write a code of this output?? "Enter range number:"10 1 is an odd number 2 is an even numbers 3 in an odd numbers 4 " to 10" "printing all odd numbers:" 1,3,5,7,9 "printing all even numbers:" 2,4,6,8,10 "sum of all odd numbers:25 "sum of all even numbers:30 using a C Programming ARRAY pleas pleas help.. its my project ..please :(
5. distance conversion: Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer
What does 1f stand for?
Write a program that takes three variables(a,b,c) in as separate parameters and rotates the values stored so that value a goes to b,b,to c and c to a
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?