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 |
Function calling procedures? and their differences? Why should one go for Call by Reference?
Explain what is the purpose of "extern" keyword in a function declaration?
what is a c-language.what is do.
write a c code "if you give a any decimal number then print that number in english alphabet"? ex: i/p: 552 o/p: five hundred fifty two ...
What are the 5 types of inheritance in c ++?
Can variables be declared anywhere in c?
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above
How can I write a function analogous to scanf?
What is the output for the following program #include<stdio.h> main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }
will u give me old quesrion papers for aptitude for L & t info tech?
What are the different types of linkage exist in c?
Write a program that accept anumber in words