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 |
Explain the array representation of a binary tree in C.
what is difference b/w extern & volatile variable??
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
what is the difference between exit() and _exit() functions?
What is array of pointers to string?
What is the meaning of 2d in c?
What extern c means?
wt is d full form of c
What is union in c?
Write a program for print infinite numbers
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }