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 |
Tell me can the size of an array be declared at runtime?
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe
what would be the output of the follwing struct st { char name[20]; int i; float f; }; main() { struct st emp = {"forum"}; printf("%d %f",emp.i,emp.f); }
How can I get Single byte from 'int' type variable? Can we alter single bit or multiple bits in int type variable? if so, How?
Why is sprintf unsafe?
plz answer.. a program that takes a string e.g. "345" and returns integer 345
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
union { char ch[10]; short s; }test; test.s = 0xabcd; main() { printf("%d",ch[10]); }
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is the use of gets and puts?
What is identifier in c?