main()
{
int i=5;
printf(“%d”,i=++i ==6);
}
Answer / susie
Answer :
1
Explanation:
The expression can be treated as i = (++i==6), because == is
of higher precedence than = operator. In the inner
expression, ++i is equal to 6 yielding true(1). Hence the
result.
| Is This Answer Correct ? | 22 Yes | 5 No |
Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number
What is the hidden bug with the following statement? assert(val++ != 0);
main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit = (bit >> (i - (i -1)))); } } a. 512, 256, 128, 64, 32 b. 256, 128, 64, 32, 16 c. 128, 64, 32, 16, 8 d. 64, 32, 16, 8, 4
what is variable length argument list?
Program to Delete an element from a doubly linked list.
4 Answers College School Exams Tests, Infosys,
main() { char a[4]="HELL"; printf("%s",a); }
main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }
how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.
0 Answers Mbarara University of Science and Technology,
Display the time of the system and display the right time of the other country
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.