main()
{
char not;
not=!2;
printf("%d",not);
}
Answer / susie
Answer :
0
Explanation:
! is a logical operator. In C the value 0 is considered to
be the boolean value FALSE, and any non-zero value is
considered to be the boolean value TRUE. Here 2 is a
non-zero value so TRUE. !TRUE is FALSE (0) so it prints 0.
| Is This Answer Correct ? | 17 Yes | 0 No |
Write a program to model an exploding firecracker in the xy plane using a particle system
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
You are given any character string. Find the number of sets of vowels that come in the order of aeiou in the given string. For eg., let the given string be DIPLOMATIC. The answer returned must be "The number of sets is 2" and "The sets are "IO and AI". Vowels that form a singleton set must be neglected. Try to post the program executable in gcc or g++ or in java.
Write a C program to add two numbers before the main function is called.
typedef struct error{int warning, error, exception;}error; main() { error g1; g1.error =1; printf("%d",g1.error); }
main() { extern out; printf("%d", out); } int out=100;
main() { if (!(1&&0)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above
Code for 1>"ascii to string" 2>"string to ascii"
1 Answers Aricent, Global Logic,
String reverse with time complexity of n/2 with out using temporary variable.
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
write a program in c to merge two array